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 FontFont.allocateArray(long elementCount) Allocate an array of Fontstatic FontFont.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of FontFont.getArrayElement(int index) static FontRaylib.getFontDefault()Get the default Fontstatic FontRaylib.getFontDefault(Arena arena) Get the default Fontstatic FontLoad font from file into GPU memory (VRAM)static FontLoad font from file into GPU memory (VRAM)static FontRaylib.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 FontRaylib.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 FontRaylib.loadFontFromImage(Image image, Color key, int firstChar) Load font from Image (XNA style)static FontRaylib.loadFontFromImage(Arena arena, Image image, Color key, int firstChar) Load font from Image (XNA style)static FontRaylib.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 FontRaylib.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 voidRaylib.drawTextCodepoint(Font font, int codepoint, Vector2 position, float fontSize, Color tint) Draw one character (codepoint)static voidRaylib.drawTextCodepoints(Font font, MemorySegment codepoints, int codepointCount, Vector2 position, float fontSize, float spacing, Color tint) Draw multiple character (codepoint)static voidRaylib.drawTextEx(Font font, String text, Vector2 position, float fontSize, float spacing, Color tint) Draw text using font and additional parametersstatic voidRaylib.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 booleanRaylib.exportFontAsCode(Font font, String fileName) Export font as code file, returns true on successstatic RectangleRaylib.getGlyphAtlasRec(Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic RectangleRaylib.getGlyphAtlasRec(Arena arena, Font font, int codepoint) Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not foundstatic intRaylib.getGlyphIndex(Font font, int codepoint) Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfoRaylib.getGlyphInfo(Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic GlyphInfoRaylib.getGlyphInfo(Arena arena, Font font, int codepoint) Get glyph font info data for a codepoint (unicode character), fallback to '?' if not foundstatic voidRaylib.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 ImageRaylib.imageTextEx(Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static ImageRaylib.imageTextEx(Arena arena, Font font, String text, float fontSize, float spacing, Color tint) Create an image from text (custom sprite font)static booleanRaylib.isFontReady(Font font) Check if a font is readystatic Vector2Raylib.measureTextEx(Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic Vector2Raylib.measureTextEx(Arena arena, Font font, String text, float fontSize, float spacing) Measure string size for Fontstatic voidRaylib.unloadFont(Font font) Unload font from GPU memory (VRAM)