WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #15 on: August 06, 2012, 09:16:34 AM »
Yes, TC obviously supports TTF fonts ;) But it sounds like your Qt doesn't. You didn't answer on what Qt you're 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 #16 on: August 06, 2012, 09:49:09 AM »
I'm using QT 4.8.2

Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #17 on: August 06, 2012, 10:26:58 AM »
Could I be missing extension. This is what I have now:

Xlibs.tcz
Xorg-7.5-lib.tcz
Xorg-7.6-lib.tcz
Xprogs.tcz
fltk-1.10.tcz
flwm_topside.tcz
gcc_libs.tcz
libftdi.tcz
libpci.tcz
libusb.tcz
openssh.tcz
openssl-1.0.0.tcz
pci-utils.tcz
usb-serial-3.0.21-tinycore.tcz
usb-utils.tcz
wbar.tcz
xvtouch.tcz
Xvesa.tcz
x11vnc.tcz
nano.tcz
udev-lib.tcz
fontconfig.tcz
opera-11.tcz
Xorg-fonts.tcz
Xorg-7.6-bin.tcz

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #18 on: August 06, 2012, 12:28:26 PM »
I'd suspect that libxft would be a dep of any of those, but not sure.
For testing purposes I'd suggest you use opera10 which AFAIK is the only version in repo depending on shared qt libs - opera11 is no longer qt based.
"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 #19 on: August 06, 2012, 03:51:31 PM »
No, I mean what Qt as in where it comes from, not the version. Is it from our repo, or copied from Ubuntu, or linked statically, or some other way.

Clearly not from our repo, seeing as the version is different.
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 #20 on: August 07, 2012, 08:45:46 AM »
It is a dynamic built by me from their source (4.8.2)on my Ubuntu and deployed to my Tiny Core.
I download from your repos QT Designer 4.7.4 just to see how it will list its available fonts and it has no problem.
My Test program on Ubuntu does not list all the fonts that Designer does. I'm really lost now!!


« Last Edit: August 07, 2012, 08:54:19 AM by mbertrand »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #21 on: August 07, 2012, 09:07:48 AM »
That sounds like an issue with your Qt code, then. Maybe ask at a Qt forum?
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 #22 on: August 07, 2012, 09:14:03 AM »
Not my code. It does nothing it is a QWindow with a QFontComboBox.
I just stomped on something here, I'm building on my Ubuntu with 4.8.2 and using libs from your repos at 4.7.4.
I built with 4.7.4 and all is well!!! I looks maybe like something is not backwards compatible regarding QT? This looks now more like
a QT problem and therefore I will not bombarded you with question not related to Tiny Core. I appreciate you time and thanks.
I let you you know my final outcome, maybe some else may one day have the same problem.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Adding true type fonts
« Reply #23 on: August 07, 2012, 10:54:32 AM »
Oh, that's not even supposed to work :) (compiling against a newer version than you're running with)
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 #24 on: August 07, 2012, 11:10:07 AM »
QT has good backward compatibility but to some extent! My app compiled against 4.8.2 will run with 4.7.4 libs.
This was not my plan. Anyways it looks like QT's 4.8.1 build works and 4.8.2 does not.
The 4.8.1 is a built I got directly from QT. The build 4.8.2 is a built I did. So, either something is wrong with my build or their source. I'm investigating.


Offline mbertrand

  • Full Member
  • ***
  • Posts: 225
Re: Adding true type fonts
« Reply #25 on: August 08, 2012, 09:18:38 AM »
Well, it turns out to be my build of QT libraries, Why, don't know as of now but for now I'm using pre built from QT and al work well.
But I would like to know what fonts come with Tiny Core and where are they.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #26 on: August 08, 2012, 09:43:48 AM »
You could compile under core instead of ubuntu to see if that makes any difference.
"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 #27 on: August 10, 2012, 08:54:10 AM »
Ok, I found the problem It was as a mentioned my build of QT libs. QT libs need to be built with fonconfig support.
By default it is but if you don't have the fonconfig development lib  on your build system QT lib still builds with no warning, at least I did not see any obvious warnings. So I ended up with a built lib and no fontconfig support.

Thanks for all your support.
Keep the great work.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Adding true type fonts
« Reply #28 on: August 11, 2012, 04:59:06 PM »
I wouldn't expect a warning when libs for an optional feature are not installed - at best an information of optional features included at the end of output of ./configure.
I'd reckon if you examine the output of ./configure such would be visible.
However, feel free to make suggestions of improvement with upstream. ;)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)