Download Now

    Reference TFontCollection

    Declared in Codebot.Render.Fonts.pas on line 85

    TFontCollection holds fonts by name, loading them from the assets/fonts folder when they do not exist. A font named 'roboto' is loaded from 'assets/fonts/roboto.ttf'.
      TFontCollection = class(TContextCollection)
      public
        constructor Create;
        { Return a font by name or locate and create the font from an asset }
        property Font[AName: string]: TFont read GetFont; default;
        { The font named 'roboto' provided with the library assets }
        property DefaultFont: TFont read GetDefaultFont;
      end;

    See also

    TContextCollection in Codebot.Render.Contexts.pas