The tactics sketch in a pencil hand: Caveat, under the SIL Open Font License
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
1af53ec26a
commit
c83b020952
8 files changed
+203
-7
No files matched your search
@@ -1481,6 +1481,15 @@ class App final : public Rml::EventListener {
|
||||
Rml::LoadFontFace(rml::asset_path(own / "CabinSketch-Regular.ttf"), "Chalk", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Normal);
|
||||
if (chalk && fs::exists(own / "CabinSketch-Bold.ttf"))
|
||||
Rml::LoadFontFace(rml::asset_path(own / "CabinSketch-Bold.ttf"), "Chalk", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Bold);
|
||||
// the pencil hand of the tactics sketch; without its files the chalk hand writes there
|
||||
bool pencil = fs::exists(own / "Caveat-Regular.ttf") &&
|
||||
Rml::LoadFontFace(rml::asset_path(own / "Caveat-Regular.ttf"), "Pencil", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Normal);
|
||||
if (pencil && fs::exists(own / "Caveat-Bold.ttf"))
|
||||
Rml::LoadFontFace(rml::asset_path(own / "Caveat-Bold.ttf"), "Pencil", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Bold);
|
||||
if (!pencil && chalk) {
|
||||
Rml::LoadFontFace(rml::asset_path(own / "CabinSketch-Regular.ttf"), "Pencil", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Normal);
|
||||
if (fs::exists(own / "CabinSketch-Bold.ttf")) Rml::LoadFontFace(rml::asset_path(own / "CabinSketch-Bold.ttf"), "Pencil", Rml::Style::FontStyle::Normal, Rml::Style::FontWeight::Bold);
|
||||
}
|
||||
if (!display) {
|
||||
std::vector<fs::path> serif;
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in new issue
Block a user