How to change font size of tabs in tab container

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Help me please

Hi everyone!
I have added a Tab Container node with two Tabs as its child. I have renamed the Tabs to Upgrade and Buy. But the Upgrade and Buy written at top are very small and in ugly font style. I only want to increase the Font size and its font.
Thank you!

:bust_in_silhouette: Reply From: Yuminous

Hey there!

It’s slightly counter-intuitive, but to change the fonts (and size) of the Tab nodes, you actually need to set your Custom Fonts on the Tab Container node instead.

Selecting the TabContainer
Setting Custom Fonts
You can also adjust height margins in the same place. Hope that it helps!

Thanks a lot friend!
Your answers are always very helpful.
Godot QA should be proud to have users like you.
Best of luck!!!

Help me please | 2021-08-13 02:59

Just a silly question I have!

I have now added some nodes as below
>Scroll container
>>>(Buttons, labels, textures etc.. )

Now I can scroll it horizontally easily with the slider at the bottom. But I also want it to scroll it by Swiping it.
Thanks again!

Help me please | 2021-08-13 07:16

That’s a really good question actually!
I do have an answer for you:

Go into your Project Settings, then Input Devices > Pointing (or just search “touch”), and enable “Emulate Touch from Mouse”

Project Settings

Now… by default the user can scroll downwards even if there’s no vertical scroll bar…for some reason…
(it’s an engine quirk)

Infinite vertical scrolling
And that is obviously undesirable.

If you have vertical content then you can ignore this (because the problem goes away), but to solve it: select your ScrollContainer node and in its properties, set: Vertical Enabled to be disabled.

And, also… thanks!
You’re welcome! (every single time!)

It is fun to answer questions here sometimes, and it’s also really nice to answer questions like yours where you have all the details for your question, and you always give feedback so it’s really nice to see your response and be satisfied in knowing if the answer(s) had actually helped in some way.

I don’t know enough or have barely enough time to answer even half the answers that pass through here, but I really think of good questions and QA sites as valuable resources for future developers of all walks of life.

So the best of luck with your project and please feel very welcome to keep asking questions if you need! : )

Yuminous | 2021-08-13 08:23

Thanks again!
It worked in the same way which I had thought for my project.

Help me please | 2021-08-13 10:02