Page 1 of 1

Calling files of font like .ttf?

PostPosted: Tue Dec 02, 2008 6:09 pm
by JC
Antonio and friends,

Exists a way to call a file of font like .ttf without installing it on windows?

Font install

PostPosted: Tue Dec 02, 2008 7:41 pm
by ukoenig
Hello JC,

as far as i know, a font must be installed.
That is the problem : If You use nice fonts inside Your
application and it is not installed on the computer of Your customer,
You will have a problem. You have to deliver the font with Your
application as well.
For that reason, it is better to use windows-standard fonts like
Arial, Comic Sans Ms Standard, Ms Sans Serif, Times New Roman....

Regards
Uwe :lol:

PostPosted: Tue Dec 02, 2008 7:57 pm
by JC
Uwe,

What you think about this way?

Code: Select all  Expand view
Function AddFontResource

Adds a new font to the Windows font table

Syntax:

    AddFontResource( <cFontFile> | <hFontResource> ) \\ <nFontsAdded>

This function add a font resource to the Windows font table. Any application can then use the font.

Parameters:

    <cFontFile> The name of an external file where we have stored some fonts we want to use in our application.
    <hFontResource>The handle of a module (DLL) where we have stored some fonts we want to use in our application.

Returns:

    <nFontsAdded> The number of fonts the system

Font-install

PostPosted: Tue Dec 02, 2008 8:05 pm
by ukoenig
Hello JC,

I think, it is the same.
You install a font with Your application, instead with the MS-Font-Manager,
but You want to use a NOT installed font ?

Regards
Uwe :lol:

PostPosted: Tue Dec 02, 2008 8:10 pm
by JC
Uwe,

I found a font to transform codes alphanumerics into bar codes and it's very simple and functional.
I have think if this will be the best solution? Or with highest easy then?

Using fonts without install.

PostPosted: Tue Dec 02, 2008 8:20 pm
by ukoenig
Hello JC,

I think, it is the only solution, if You need it.

Regards
Uwe :lol: