Download Now

    Reference nvgCreateFontMem

    Declared in Codebot.Render.NanoVG.pas on line 734

    Creates font by loading it from the specified memory chunk. Returns handle to the font. The memory must remain valid while the font is used. When FreeData is True it is freed with FreeMem when the context is deleted.
    function nvgCreateFontMem(Ctx: PNVGcontext; const Name: string; Data: PByte; NData: Integer; FreeData: Boolean): Integer;

    See also