QB64 Team Software > InForm Discussion

Any way to change built-in font ?

(1/1)

mohai:
Hello all,

Is there any way to change built-in font or change to a distributable one?
I mean, if I change the font in a form or some controls, I can only choose between buitl-in VGA font or the fonts installed in my Windows but, in different OS or different Windows versions, that font could not be available. So, labels and other texts will show different or even will show cut.

So, Is there any way to change or tweak InForm to include a different font into the EXE file, or to use an external font, such as NotoMono-Regular.ttf, even if it is not installed in your system?

SMcNeill:
Easiest way is to just copy that font and include it with your project as a resource file.

FellippeHeitor:
In the form designer, if you click the label that says "Font:" to the left of the font list, the list will turn into a text field where you can manually enter a font file name.

mohai:

--- Quote from: FellippeHeitor on December 24, 2021, 08:36:27 am ---In the form designer, if you click the label that says "Font:" to the left of the font list, the list will turn into a text field where you can manually enter a font file name.

--- End quote ---
Thank you for the answers.

It works but, some care must be taken:

 - The font file must be in the same folder as UiEditor.exe (or must be installed in Windows system), so Inform will find it at edit time.
 - The font file must be in the same folder as the .EXE from your project. If not, default VGA font will be used instead.



FellippeHeitor:
Precisely.

Navigation

[0] Message Index

Go to full version