mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Remove the public API for registering fonts by path or memory chunk
This is not needed anymore in the light of being able to write `import "blah.ttf"` in .60 markup
This commit is contained in:
parent
cb70f58990
commit
afe3df6381
8 changed files with 8 additions and 60 deletions
|
@ -687,6 +687,8 @@ inline void quit_event_loop()
|
|||
cbindgen_private::sixtyfps_quit_event_loop();
|
||||
}
|
||||
|
||||
namespace private_api {
|
||||
|
||||
/// Registers a font by the specified path. The path must refer to an existing
|
||||
/// TrueType font font.
|
||||
/// \returns an empty optional on success, otherwise an error string
|
||||
|
@ -701,4 +703,6 @@ inline std::optional<SharedString> register_font_from_path(const SharedString &p
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
} // namespace sixtyfps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue