-
-
Notifications
You must be signed in to change notification settings - Fork 5
Font Manager module
In this page, we will detail the cross-platform ufont
module provided by our own
UntitledFontManager library. This module adds a number of utility functions that makes
it easy to provide your users with the following:
- A list of the currently available system fonts
- Filtering for a desired system font
- Creating a collection of system fonts that covers all code ranges which can easily be loaded into dear imgui
We also provide some additional functionality that integrates this module into the framework in an easier way.
To enable it, update your uvproj.yaml
so that the ufont
key under enabled-modules
is set to true like this:
name: "MyProject"
version: "1.0.0.0"
engine-version: "1.0.0.0"
enabled-modules:
os: true
ufont: true
Then, regenerate the modules cache by running the following command:
user $ ./UVKBuildTool --generate <project directory>
After that, refresh your CMake project with cmake ..
!
The entire module is flagged as event safe at Any time
.
The library has already been documented on its own GitHub repo's wiki.
To check for the module at compile time, use the UIMGUI_UFONT_UTILS_SUBMODULE_ENABLED
macro.
Runtime checking can be done using the ufont
member of the ModuleSettings
struct. More info can be found
here.
More info on the UntitledFontManager library's C API can be found here. The page explains both APIs in one place.
This project is supported by all the people who joined our discord server and became beta testers. If you want to join the discord you can click here.
- Home
- Beginner content
- Install guide
- Creating and using the UI components
- The Instance
- The Init Info struct
- Textures
- Logging
- Unicode support
- Additional features
- Client-side bar
- Custom type definitions
- Memory management
- C API development
- Config files and Folders
- Interfaces
- Internal Event safety
- Customising the build system
- Modules system
- Collaborating with others
- Advanced content
- Developer and contributor resources
- Misc