Hi
I need to have the same GUI look with different fonts.
GTK can automaticaly adapt all the gadget to a different font?
if answer is no what font I must use to have the same look on differents Linux?
Is possible to include a font in a program?
Thanks
Questions about fonts
you can ship a font with your exe (see IncludeBinary) and use this font with to have the same font on each Gadget
(after extracting the font to disk and loaded with LoadFont() first)
with GTK+ you can use rc-files to achieve a change of the look of your program
Code: Select all
SetGadgetFont(#PB_Default,FontID(myfnt))(after extracting the font to disk and loaded with LoadFont() first)
with GTK+ you can use rc-files to achieve a change of the look of your program
Hi walkerwalker wrote:you can ship a font with your exe (see IncludeBinary) and use this font withto have the same font on each GadgetCode: Select all
SetGadgetFont(#PB_Default,FontID(myfnt))
(after extracting the font to disk and loaded with LoadFont() first)
with GTK+ you can use rc-files to achieve a change of the look of your program
the LoadFont() command works if the font is located in the program directory?
yes, but you'll have to specify the path to the font... i.e.
Code: Select all
LoadFont(#Pb_Any,"/home/xyz/mypgm/myfont.ttf",10)Re:
Is that actually valid - using a filename with LoadFont() ? it's not mentioned in the helpfile, and both my tests of it failed on Win + Linux. I too am looking for a way to dynamically load font from ttf file on OSX + Linuxwalker wrote:yes, but you'll have to specify the path to the font... i.e.Code: Select all
LoadFont(#Pb_Any,"/home/xyz/mypgm/myfont.ttf",10)
Do: Re: Me:
http://www.purebasic.fr/english/viewtop ... 37#p471937Keya wrote:Is that actually valid - using a filename with LoadFont() ? it's not mentioned in the helpfile, and both my tests of it failed on Win + Linux. I too am looking for a way to dynamically load font from ttf file on OSX + Linuxwalker wrote:yes, but you'll have to specify the path to the font... i.e.Code: Select all
LoadFont(#Pb_Any,"/home/xyz/mypgm/myfont.ttf",10)
Keep it BASIC.


