Page 1 of 1

Is there anyway to embed ttf fonts?

Posted: Fri Jul 10, 2009 8:21 am
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?

Re: Is there anyway to embed ttf fonts?

Posted: Fri Jul 10, 2009 9:03 pm
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

Is there anyway to embed ttf fonts?

Posted: Tue Jul 14, 2009 1:53 pm
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

Re: Is there anyway to embed ttf fonts?

Posted: Tue Jul 14, 2009 2:16 pm
by Rathinagiri
Oh! Thanks a lot! I will try and tell you.

Re: Is there anyway to embed ttf fonts?

Posted: Wed Jul 15, 2009 8:15 pm
by Alex Gustow
Good advice! Thanks Claudio!

Re: Is there anyway to embed ttf fonts?

Posted: Thu Jul 16, 2009 12:50 am
by jrendon
Hola Claudio

Muy bueno tu aporte, Gracias

Saludos desde Mazatlán, México.

Juan Rendón