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: Fri May 04, 2018 12:10 PM

Hello,

How can I check in FWH whether a certain font is installed on my PC?
How can I install a font on my PC in FWH?

Thanks a lot for any help.

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: 375
Joined: Tue Feb 10, 2015 09:48 AM
Re: Question about fonts
Posted: Fri May 04, 2018 02:30 PM
I am not sure for installing, about the list of installed font, some time ago, posted a code http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35320&p=210260&hilit=haru#p210290 that shows them all
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Question about fonts
Posted: Fri May 04, 2018 08:01 PM
You can use a font without install it:

Code (fw): Select all Collapse
ADDFONTRESOURCE( "Myfont.ttf" )
…
REMOVEFONTRESOURCE( "Myfont.ttf" )


EMG
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Question about fonts
Posted: Sat May 05, 2018 02:28 AM
You can also use
Code (fw): Select all Collapse
aFonts := GETFONTNAMES( hDC := GetDC( 0 ) )
ReleaseDC( 0, hDC )
XBROWSER aFonts AUTOSORT

The functions GETFONTNAMES(), ADDFONTRESOURCE(), REMOVEFONTRESOURCE() are provided by FWH.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion