Unit CastleWinFontConvert
Description
Convert fonts available on Windows to TOutlineFontData.
This unit heavily depends on GetGlpyhOutline WinAPI function. This function is our "core" of converting Windows fonts to TOutlineFontData. Unfortunately, this makes this unit Windows-only.
TODO: Rewrite it using FreeType library, or maybe just resign from using outline fonts.
Uses
Overview
Functions and Procedures
Description
Functions and Procedures
function Font2OutlineFont(WinFont: HFont): TOutlineFontData; |
Create our font from a Windows font handle. Remeber to free resulting font later by FreeAndNilFont.
|
procedure FreeAndNilFont(var Font: TOutlineFontData); overload; |
Free and nil Font instance, freeing also all characters by FreeMem. Use this only on fonts with characters created by Font2OutlineFont.
|
Generated by PasDoc 0.13.0 on 2014-08-30 12:10:44
|