Types
Font = ptr BLFontCore
FontFace = ptr BLFontFaceCore
FontManager = ptr BLFontManagerCore
Procs
proc destroyFontManager(fm: FontManager) {....raises: [], tags: [], forbids: [].}
proc getTypeface(fm: FontManager; name: string): FontFace {....raises: [], tags: [], forbids: [].}
proc initFontCore(f: FontFace; fontSize: float = 16.0): BLFontCore {....raises: [], tags: [], forbids: [].}
- Initialize a BLFontCore and returns the Font pointer
proc initFontManager(): FontManager {....raises: [], tags: [], forbids: [].}
proc load(f: FontFace; path: string; readFlags: BLFileReadFlags = BL_FILE_READ_NO_FLAGS): FontFace {. ...raises: [], tags: [], forbids: [].}
- Load a font from path
proc loadTypeface(fm: FontManager; path: string) {....raises: [], tags: [], forbids: [].}
proc loadTypeface(path: string; readFlags: BLFileReadFlags = BL_FILE_READ_NO_FLAGS): FontFace {. ...raises: [], tags: [], forbids: [].}
- Initialize a new Font by reading a font from path
proc metrics(f: Font; data: ptr string): ptr BLTextMetrics {....raises: [], tags: [], forbids: [].}
proc newTypeface(): FontFace {....raises: [], tags: [], forbids: [].}
- Initialize a new FontFace