Uses of Class
com.raylib.Font
Packages that use Font
-
Uses of Font in com.raylib
Methods in com.raylib that return FontModifier and TypeMethodDescriptionstatic Font
Font.allocateArray
(long elementCount) Allocate an array of Fontstatic Font
Font.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of FontFont.getArrayElement
(int index) static Font
Raylib.getFontDefault()
Get the default Fontstatic Font
Raylib.getFontDefault
(Arena arena) Get the default Fontstatic Font
Load font from file into GPU memory (VRAM)static Font
Load font from file into GPU memory (VRAM)static Font
Raylib.loadFontEx
(Arena arena, String fileName, int fontSize, IntBuffer codepoints, int codepointCount) Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFontstatic Font
Raylib.loadFontEx
(String fileName, int fontSize, IntBuffer codepoints, int codepointCount) Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFontstatic Font
Raylib.loadFontFromImage
(Image image, Color key, int firstChar) Load font from Image (XNA style)static Font
Raylib.loadFontFromImage
(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)static Font
Raylib.loadFontFromMemory
(Arena arena, String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e.static Font
Raylib.loadFontFromMemory
(String fileType, ByteBuffer fileData, int dataSize, int fontSize, IntBuffer codepoints, int codepointCount) Load font from memory buffer, fileType refers to extension: i.e.Font.setBaseSize
(int value) Base size (default chars height)Font.setGlyphCount
(int value) Number of glyph charactersFont.setGlyphPadding
(int value) Padding around the glyph charactersGlyphs info dataRectangles in texture for the glyphsFont.setTexture
(Texture value) Texture atlas containing the glyphsMethods in com.raylib with parameters of type FontModifier and TypeMethodDescriptionstatic void
Raylib.drawTextCodepoint
(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static void
Raylib.drawTextCodepoints
(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static void
Raylib.drawTextEx
(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic void
Raylib.drawTextPro
(Font font, String text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, Color tint) Draw text using Font and pro parameters (rotation)static boolean
Raylib.exportFontAsCode
(Font font, String fileName) Export font as code file, returns true on successstatic Rectangle
Raylib.getGlyphAtlasRec
(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic Rectangle
Raylib.getGlyphAtlasRec
(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic int
Raylib.getGlyphIndex
(Font font, int codepoint) Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfo
Raylib.getGlyphInfo
(Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfo
Raylib.getGlyphInfo
(Arena arena, Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic void
Raylib.imageDrawTextEx
(Image dst, Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text (custom sprite font) within an image (destination)static Image
Raylib.imageTextEx
(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static Image
Raylib.imageTextEx
(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static boolean
Raylib.isFontReady
(Font font) Check if a font is readystatic Vector2
Raylib.measureTextEx
(Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic Vector2
Raylib.measureTextEx
(Arena arena, Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic void
Raylib.unloadFont
(Font font) Unload font from GPU memory (VRAM)