Is there anyway to embed ttf fonts?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5243
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 162 times
Been thanked: 161 times
Contact:

Is there anyway to embed ttf fonts?

Post by Rathinagiri » Fri Jul 10, 2009 8:21 am

Hi,

Is there anyway to embed .ttf fonts in our applications? Otherwise, is there anyway to pickup font data in the directory in which the application runs or should always be the font in c:\windows\fonts directory to be recognized by HMG?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
dhaine_adp
Posts: 457
Joined: Wed Aug 06, 2008 12:22 pm
Location: Manila, Philippines
Been thanked: 2 times

Post by dhaine_adp » Fri Jul 10, 2009 9:03 pm

Is there anyway to embed .ttf fonts in our applications? Otherwise, is there anyway to pickup font data in the directory in which the application runs or should always be the font in c:\windows\fonts directory to be recognized by HMG?
Hi Rathi,

I believed windows handles this the way you say it. Additional fonts should be installed before it can be recognized.

To embed means to be installed if it is not available within the apps. or during the installation of the apps.

Your question is interesting to explore.

Regards,

Danny
Regards,

Danny
Manila, Philippines

ClaudioGalera
Posts: 47
Joined: Tue Jul 14, 2009 1:14 pm
Location: Mar del Plata, Argentina

Post by ClaudioGalera » Tue Jul 14, 2009 1:53 pm

Spanish :
-----------------
Hola :)
Mi nombre es Claudio y vivo en Mar del PLata, Argentina, he programado en clipper desde 1991 y desde hace 3 años empece a aprender sobre HMG e implementarlo.

Queria responder sobre este Topic que he leido.
Yo uso la siguiente funcion para cargar al windows un font :

Code: Select all

DECLARE DLL_TYPE_INT AddFontResource ( DLL_TYPE_LPCTSTR lpszFilename ) IN GDI32.DLL

function main()
...

if file( "quartzitalic.ttf" )
	AddFontResource( "quartzitalic.ttf" )
endif

...
return
Gracias por compartir sus conocimientos, Saludos a todos

Claudio
---------------------
Google Traslate English
----------------------
Hello:)
My name is Claudio and I live in Mar del Plata, Argentina, I have programmed in clipper since 1991 and since 3 years ago I started to learn about and implement HMG.

I wanted to respond on this topic that I have read.
I use the following function to load a font to windows:

Code: Select all

DECLARE DLL_TYPE_INT AddFontResource ( DLL_TYPE_LPCTSTR lpszFilename ) IN GDI32.DLL

function main()
...

if file( "quartzitalic.ttf" )
	AddFontResource( "quartzitalic.ttf" )
endif

...
return
Thanks for sharing your knowledge, Greetings

Claudio

User avatar
Rathinagiri
Posts: 5243
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 162 times
Been thanked: 161 times
Contact:

Post by Rathinagiri » Tue Jul 14, 2009 2:16 pm

Oh! Thanks a lot! I will try and tell you.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Post by Alex Gustow » Wed Jul 15, 2009 8:15 pm

Good advice! Thanks Claudio!

User avatar
jrendon
Posts: 92
Joined: Thu Aug 14, 2008 9:21 pm

Post by jrendon » Thu Jul 16, 2009 12:50 am

Hola Claudio

Muy bueno tu aporte, Gracias

Saludos desde Mazatlán, México.

Juan Rendón

Post Reply