ResourceTTFontLib for Borland C++ Builder 3.0

TResourceTTFont Version 1.2 (Build 1.2.1.41)

Copyright 1998 by Alper YAZGAN

All rights reserved.

e-mail: alper@mda.com.tr

URL: http://www.mda.com.tr/alper

This freeware version of the component package may be used and copied freely.


Description:

The component TResourceTTFont in this library stores the selected true type font in the application's executable and makes it available at runtime. This component maybe useful to have persistent fonts in your applications. This component was written completely in BC++Builder 3. So you could not install it into neither Delphi(any version) nor BC++Builder 1.

Contact Information:

Feel free to contact me if you have any questions, comments or suggestions at alper@mda.com.tr . You can download the latest version from the address http://www.mda.com.tr/alper , and from Delphi Super Page and Torry's Delphi Pages.

Notes:

Files in this archive:

Main Library Files

ResourceTTFontLib/ResourceTTFontLib.bpl
ResourceTTFontLib/ResourceTTFontLib.bpi
ResourceTTFontLib/ResourceTTFontLib.lib
ResourceTTFontLib/ResourceTTFont.dfm
ResourceTTFontLib/ResourceTTFont.h
ResourceTTFontLib/ResourceTTFontEditor.dfm
ResourceTTFontLib/ResourceTTFontAboutForm.dfm
ResourceTTFontLib/ResourceTTFont.res
ResourceTTFontLib/ResourceTTFontLib.res
ResourceTTFontLib/ResourceTTFont.rc
ResourceTTFontLib/ResourceTTFont48.bmp
ResourceTTFontLib/ResourceTTFont.bmp

Example Project

ResourceTTFontLib/Example/MainForm.cpp
ResourceTTFontLib/Example/MainForm.dfm
ResourceTTFontLib/Example/MainForm.h
ResourceTTFontLib/Example/FontsForm.h
ResourceTTFontLib/Example/ResourceTTFontProject.bpr
ResourceTTFontLib/Example/ResourceTTFontProject.cpp
ResourceTTFontLib/Example/FontsForm.cpp
ResourceTTFontLib/Example/FontsForm.dfm
ResourceTTFontLib/Example/ResourceTTFontProject.res

Installation into BC++Builder 3:

Key Properties:

This property is available only at design-time. At runtime no resources are allocated for this property, you have just a NULL pointer.

This property is the heart of the component. You can assign a value to this property only at design-time. Its property editor allows you to select an available true type font interactively, or you can just type the name of the true type font, it writes the font in the resource. At runtime it automatically searches for the font, if the font is available, does nothing; if not, installs the font and makes it available globally.

This property allows you to install your font resource into windows permanently.

 

Revision History:

Notes:

To compress the font resource I used LZ like compression algoritm. I can say that the algoritm is not as good as LZH, but can compete with Lempel-Ziff.


THIS SOFTWARE AND THE ACCOMPANYING FILES ARE DISTRIBUTED "AS IS" AND WITHOUT WARRANTIES AS TO PERFORMANCE OR MERCHANTABILITY OR ANY OTHER WARRANTIES WHETHER EXPRESSED OR IMPLIED.

Because of the various hardware and software environments this software may be put into,

NO WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE IS OFFERED.THE AUTHOR OF THIS SOFTWARE (Alper YAZGAN) CANNOT BE HELD LIABLE FOR ANY DIRECT OR INDIRECT DAMAGE ARISING THROUGH INSTALLATION ANDOR USE OF THE SOFTWARE.