代码说明:
将TruType字体放在exe内,即使程序运行环境没有此字体,也没关系
TPortableFont lets you specify a TrueType font name. The font itself will be stored inside the EXE. If you run your EXE on a computer that does not have this font installed, TPortableFont can install it for you. You can specify whether the font should be installed temporarily or permanantly. TPortableFont is not a component -- it's a "persistent" class. Think of it like a TFont. It is usually a property in a component, not the component itself. You would use this when building other components. TPortableFontComp is a wrapper component whose only property is the TPortableFont. Use this if all you need is the TPortableFont on your form.
【立即下载】
|