Fonts: Added a ImFontFlags_NoLoadError flag to let user code try file paths. (3611)

This commit is contained in:
ocornut
2025-03-05 20:08:00 +01:00
parent 131f5c57ab
commit dec8d3863a
2 changed files with 3 additions and 1 deletions

View File

@@ -3676,6 +3676,7 @@ enum ImFontFlags_
ImFontFlags_None = 0,
ImFontFlags_LockBakedSizes = 1 << 0, // Disable loading new baked sizes, disable garbage collecting current ones. e.g. if you want to lock a font to a single size.
ImFontFlags_NoLoadGlyphs = 1 << 1, // Disable loading new glyphs.
ImFontFlags_NoLoadError = 1 << 2, // Disable throwing an error/assert when calling AddFontXXX() with missing file/data. Calling code is expected to check AddFontXXX() return value.
};
// Font runtime data and rendering