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:
- Currently I do not think about releasing the source code.
- The component was tested with Borland C++ Builder Version 3.0 (Build 3.70) running on Win98.
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:
- Select Tools | Environment Options... on the menu bar. Go to Library tab and add the full path of your ResourceTTFontLib directory to the Library Path field if you have not already done so. Click OK.
- Select Component | Install Packages... on the menu bar. Click the Add... button, locate the file ResourceTTFontLib.bpl in your ResourceTTFontLib directory, and click Open. Click OK. Once you have ResourceTTFontLib installed, you might want to take a look at the Example project in the Example directory.
Key Properties:
- __property TVersionInfo *About;
This property is available only at design-time. At runtime no resources are allocated for this property, you have just a NULL pointer.
- __property TResourceTTFontName *ResourceTTFontName;
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.
- __property bool InstallPermanently;
This property allows you to install your font resource into windows permanently.
Revision History:
- 1.0 Initial Release, 29.Sep.1998
- 1.1 InstallPermanently property added, 15.Oct.1998
- 1.2 Font resources are now compressed, 07.Nov.1998
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.