WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Adding true type fonts  (Read 7910 times)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Adding true type fonts
« on: August 03, 2012, 10:50:18 AM »
I'm deploying QT apps built on Ubuntu to Tiny Core. How do I add, configure fonts in Tiny Core?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #1 on: August 03, 2012, 11:22:40 AM »
Add is simply copy them to the correct dir (/usr/local/share/fonts or /usr/share/fonts for system wide, ~/.fonts for per-user).

Configure, that depends on what you want. Fontconfig config files are under /etc, the anti-aliasing, preference, subpixel etc settings are set there. I don't recall the per-user location for those, but that exists too.
The only barriers that can stop you are the ones you create yourself.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #2 on: August 03, 2012, 11:28:40 AM »
I know QT uses Fontconfig. Would just copying them to usr/share/fonts would allow QT to see them are I need to do more.
I'm not familiar with fontconfig.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #3 on: August 03, 2012, 11:52:26 AM »
Just copying is enough to add fonts.
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #4 on: August 03, 2012, 12:33:30 PM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #5 on: August 03, 2012, 02:12:05 PM »
Not working. Here is my test. I created a form in designer with a label only on it using lets say font "Arial" On my Ubuntu machine.
I copied this font to my Tiny Core in /usr/share/fonts. When I run my program on Tiny Core it is not using that font.
Another try was to use QT QFontCombo witch lists all font it knows about in your system. This does not list my "Arial" that I copied.


Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #6 on: August 03, 2012, 02:18:15 PM »
Have you read the thread I linked to?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #7 on: August 03, 2012, 02:37:13 PM »
Yes, I'm not using Opera but understand the thread. This did not help me. I did install fontconfig at the very begining.
I don't know how to use it. I will look in to it.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #8 on: August 03, 2012, 02:42:47 PM »
I installed Opera for fun to see and it lists the fonts I copied. So what I'm doing wrong.
Opera is listing different fonts then My QT test app. My test app has fonts I don't even know like:
Fixed[Misc]
Fixed[Sony]
Helvitica
Nil

And Opera is listing font that I've actually herd of like:
Arail
Courier New
Times New Roman

I'm LOST !!!

« Last Edit: August 03, 2012, 02:48:22 PM by mbertrand »

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #9 on: August 03, 2012, 03:12:49 PM »
Well it seems what ever font I copy Opera sees it but not my QT app. Maybe something additional as to be done???

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #10 on: August 03, 2012, 04:21:36 PM »
Hmm, I had hoped your app would behave in the same way as opera...
Obviously not :(
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #11 on: August 03, 2012, 05:15:52 PM »
Why is your qt app only using bitmap fonts? What Qt are you using?
The only barriers that can stop you are the ones you create yourself.

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #12 on: August 06, 2012, 07:47:42 AM »
Oh is that what it is doing I didn't know this. See these fonts that I've listed in the previous post are bitmap fonts?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #13 on: August 06, 2012, 08:13:27 AM »
Yes, and once opera is picking up the fonts you added you can exclude any systemwide issue.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #14 on: August 06, 2012, 08:41:13 AM »
I'm confused here , does Tiny Core support TTF?
I'm trying to educate my self regarding fonts but there a vast earea to cover!!
I got Tiny Core, X, QT, Fontconfig ect.to look at. Do you know of any good links I can start?
« Last Edit: August 06, 2012, 08:43:25 AM by mbertrand »