blend2d/font

Procs

proc destroyFontManager(fm: FontManager) {....raises: [], tags: [], forbids: [].}
proc getTypeface(fm: FontManager; name: string): FontFace {....raises: [],
    tags: [], forbids: [].}
proc initFont(f: FontFace; fontSize: float = 16.0): Font {....raises: [], tags: [],
    forbids: [].}
Initialize a BLFontCore and returns the Font pointer
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
proc size(f: Font): float {....raises: [], tags: [], forbids: [].}
Returns the current font size
proc size(f: Font; x: float) {....raises: [], tags: [], forbids: [].}
Update the font size