Question about fonts

Question about fonts

Postby driessen » Tue Apr 20, 2010 5: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Question about fonts

Postby Enrico Maria Giordano » Tue Apr 20, 2010 6:25 pm

Search for samples containing ChooseFont.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Question about fonts

Postby ukoenig » Tue Apr 20, 2010 7: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 :lol:
Last edited by ukoenig on Tue Apr 20, 2010 10:58 pm, edited 2 times in total.
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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Question about fonts

Postby driessen » Tue Apr 20, 2010 8: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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Marc Venken and 105 guests