Is there anyway to embed ttf fonts?

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Is there anyway to embed ttf fonts?

Post by Rathinagiri »

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

Re: Is there anyway to embed ttf fonts?

Post by dhaine_adp »

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

Is there anyway to embed ttf fonts?

Post by ClaudioGalera »

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: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Is there anyway to embed ttf fonts?

Post by Rathinagiri »

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:

Re: Is there anyway to embed ttf fonts?

Post by Alex Gustow »

Good advice! Thanks Claudio!
User avatar
jrendon
Posts: 92
Joined: Thu Aug 14, 2008 9:21 pm

Re: Is there anyway to embed ttf fonts?

Post by jrendon »

Hola Claudio

Muy bueno tu aporte, Gracias

Saludos desde Mazatlán, México.

Juan Rendón
Post Reply