[Font Import] Detect pixel fonts and disable subpixel positioning.

This commit is contained in:
bruvzg 2024-07-22 10:12:00 +03:00
parent 8e36f98ea5
commit 32bc1c2f33
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
13 changed files with 128 additions and 3 deletions

View file

@ -352,6 +352,7 @@ void TextServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("font_has_char", "font_rid", "char"), &TextServer::font_has_char);
ClassDB::bind_method(D_METHOD("font_get_supported_chars", "font_rid"), &TextServer::font_get_supported_chars);
ClassDB::bind_method(D_METHOD("font_get_supported_glyphs", "font_rid"), &TextServer::font_get_supported_glyphs);
ClassDB::bind_method(D_METHOD("font_render_range", "font_rid", "size", "start", "end"), &TextServer::font_render_range);
ClassDB::bind_method(D_METHOD("font_render_glyph", "font_rid", "size", "index"), &TextServer::font_render_glyph);