Tiny Core Extensions > TCE Q&A Forum
Font Type in QT Application
nim108:
I am running the latest TC (6.4 at the time of this posting) with an entire build environment underneath (compiletc, -dev packages of all libs, etc.). I used this guide (http://www.m-opensolutions.com/?p=600) to build Qt 5.4.2 and it built flawlessly. My question is about fonts. My test application written under Qt displays with a very weird font that does not match what I see under Linux Mint or Windows. How/where can I get a more traditional style font and customize it to work as the default? What am I missing? Where are the configs, if any, that I need to modify? Do I just grab Xorg-fonts.tcz and dejavu-fonts-ttf.tcz, load those, and expect it to just work?
Juanito:
what happens when you try that?
curaga:
Yeah, any fonts should just work, though many find Xorg fonts and Dejavu ones ugly - liberation or microsoft ones are common.
nim108:
Thanks, let me test with the liberation-fonts-ttf.tcz extension ... I assumed it was a Qt problem and not TC or X but from what it sounds like, the application should just use whatever font is available before falling back to some default one, which is what it seems to be doing now.
nim108:
Loaded ttf-bitstream-vera.tcz and liberation-fonts-ttf.tcz and it seemed to have changed the font in my application so I guess it works. I'm just not sure how to tell what it's using or force it to use a certain family of fonts if I have multiple sets installed for testing. Any ideas?
Navigation
[0] Message Index
[#] Next page
Go to full version