Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Embedding a font in a report template

edited January 2002 in General
Does anyone know if it is possible to embed a font in a report so that it
does not need to be installed fully into windows. The reason i need to do
this is because i have a security font which i do not want to be available
in other windows based applications but need to be able to use it in one of
my reports.

Any help is much appreciated

Tony Wood
Turnkey Computer Technology Ltd
Glasgow

Comments

  • edited January 2002
    You should be able to make a windows API call to locate the Windows
    directory on a machine. Then you can copy the font to the fonts folder in
    that directory, so you can print the report using that font. Then you can
    delete the font once you've printed the report.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2002
    Thanks for your reply,

    However, your answer means that the file has to be on an end users machine
    and hence someone with a bit of technical expertise could be able to copy
    the file and install it manually and then be able to use the font from
    within other windows apps.

    This font must not be available to anybody except from within my app for
    security reasons. Any other ideas anyone?

    Tony


  • edited January 2002
    You could store it in your exe, or in a BLOB field in a database. Then write
    it to a file in the Windows font directory when you need it, and delete it
    afterwards. Look up the standard Pascal file read/write operations, and the
    streaming stuff.

    Alternatively, it could remain in a separate file, but you could encrypt
    it - there are tools for this e.g. from www.TurboPower.com.


  • edited January 2002
    I like the sound of storing it in the exe file. Can you point me in the
    direction of how this can be done.

    Thanks for your reply.

    Tony


This discussion has been closed.