Skip to content

Commit

Permalink
This is fine
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jan 27, 2024
1 parent 662a6f0 commit 1836c20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frameos/src/frameos/utils/font.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import assets/fonts as fontAssets
var typeface: Option[Typeface] = none(TypeFace)

proc getDefaultTypeface*(): Typeface {.gcsafe.} =
{.cast(gcsafe).}: # TODO: find a better way
# We assume nobody overrides this font in a thread. Worse case they should override to the same data.
{.cast(gcsafe).}:
if typeface.isNone:
typeface = some(parseTtf(fontAssets.getAsset(
"assets/fonts/Ubuntu-Regular_1.ttf")))
Expand Down

0 comments on commit 1836c20

Please sign in to comment.