joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.63k stars 373 forks source link

How to change the size of the text in TTF output? #4349

Open BridgeHeadland opened 1 year ago

BridgeHeadland commented 1 year ago

Question

Usually I use OpenGlide Nearest as output, but sometimes I play around with the DOSBox and test out different TrueType Fonts, where some TTFs make the uppercase letters appear too large to display in their entirety in the DOS script/shell/prompt. I'm trying to understand everything related to TTF but it's not that easy for me.

Have you checked that no similar question(s) exist?

Code of Conduct & Contributing Guidelines

rderooy commented 1 year ago

You can set the TTF font size in the dosbox-x config file. There is a whole [ttf] section with various options.

maron2000 commented 1 year ago

Before arguing with others, why not respond to @rderooy 's advice? Wasn't it helpful? If your question was answered, don't forget to close your issue.

BridgeHeadland commented 1 year ago

@rderooy Thank you! I've looked through the whole [ttf] section, but I don't quite understand the ptsize option. Even if I add a ptsize value I don't see any difference. walt_disney_script.zip I'm using this TTF file, by the way. This font might be an awful lot compared to some other fonts.

rderooy commented 1 year ago

The DOSBox-X binary normally has a TTF font embedded. As such you do not normally need to set a font yourself. Not all TTF fonts are suitable as not all have the necessary characters.

With default ptsize:

Screenshot from 2023-06-27 20-06-42

Setting ptsize=12:

Screenshot from 2023-06-27 20-07-09