FerretEngine/src/Graphics/Fonts/FontLibrary.cs
/// <summary>
/// Create an instance of a Font with the given size.
/// If called multiple times with the same size, the same Font instance will always be returned.
/// </summary>
/// <param name="size">Font size</param>
/// <returns>The created Font</returns>
Create an instance of a Font with the given size.
If called multiple times with the same size, the same Font instance will always be returned.
Create an instance of a Font with the given size . If called multiple times with the same size the same Font instance will always be returned .
public Font CreateFont(int size)
        {
            if (!fonts.TryGetValue(size, out var font))
                font = new Font(size, fontBytes, GraphicsDevice);
            return font;
        }
public Font CreateFont ( int size ) { if ( ! fonts . TryGetValue ( size , out var font ) ) font = new Font ( size , fontBytes , GraphicsDevice ) ; return font ; }
Create an instance of a Font with the given size.
Create an instance of a Font with the given size .
The created Font
The created Font
size
int
None