FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about fonts
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Question about fonts
Posted: Tue Apr 20, 2010 05:48 PM

Hello,

I want to select a font out of the available fonts on my PC.

How can I establish this ?

Thanks a lot.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Question about fonts
Posted: Tue Apr 20, 2010 06:25 PM

Search for samples containing ChooseFont.

EMG

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Question about fonts
Posted: Tue Apr 20, 2010 07:18 PM
Michel,

is Your Question :
how to use / open a non installed Font => Font-File ( ???.ttf ) ?

Load a font from disk, stream or byte array.
An interesting question, I think, because there might be applications that come with their own fonts.
The obvious way to make the font available is by installing it to the font collection of the O/S.
In that case one could simply use the Font constructor that takes the font family name as its first argument and be happy.

However, there are several good reasons to decide against installing a new font to the O/S:

•Installing a font requires administrative privileges
•You don't want to clutter the font collection unnecessarily
•Your app does not have or need an installer because it's a very simple tool.

You neither want to add an installer just for installing the font, nor do you want the user to manually install a font.

Is that what You mean ???

Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Question about fonts
Posted: Tue Apr 20, 2010 08:35 PM

Uwe,
Enrico,

Enrico's solution was the one I was looking for. Thank you for that.

No, I don't want to read a font from a file on disk. But thanks anyway.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Continue the discussion