mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Use system fonts as fallback and improve system font handling.
Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
This commit is contained in:
@@ -81,7 +81,7 @@ Ref<Resource> ResourceFormatLoaderShaderInclude::load(const String &p_path, cons
|
||||
Ref<ShaderInclude> shader_inc;
|
||||
shader_inc.instantiate();
|
||||
|
||||
Vector<uint8_t> buffer = FileAccess::get_file_as_array(p_path);
|
||||
Vector<uint8_t> buffer = FileAccess::get_file_as_bytes(p_path);
|
||||
|
||||
String str;
|
||||
str.parse_utf8((const char *)buffer.ptr(), buffer.size());
|
||||
|
||||
Reference in New Issue
Block a user