You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apropos #345 and #346, it's very complicated to set up fonts correctly in a Skip app, and worst part is that when you mess it up, the build succeeds, and the app just silently shows the system-default font, with no warning or message in the build/runtime logs about missing fonts.
The skip CLI has a skip icon command that takes care of icons for you; I think it would be really helpful to have a skip font command that can take care of fonts, too.
You'd pass it the name of a file, like skip font ProtestGuerrilla-Regular.ttf, and it would:
Read the Postscript metadata and compute a font file name to match Android standards (protest_guerilla.ttf)
Copy the file into Sources/MyApp/Resources with the right name
Add any project references / symlinks necessary to make the font work in Android
Add the file to UIAppFonts
Print out example code of how to use the font, ensuring that the developer uses the font's PostScript name and not the file's name.
Apropos #345 and #346, it's very complicated to set up fonts correctly in a Skip app, and worst part is that when you mess it up, the build succeeds, and the app just silently shows the system-default font, with no warning or message in the build/runtime logs about missing fonts.
The skip CLI has a
skip icon
command that takes care of icons for you; I think it would be really helpful to have askip font
command that can take care of fonts, too.You'd pass it the name of a file, like
skip font ProtestGuerrilla-Regular.ttf
, and it would:protest_guerilla.ttf
)Sources/MyApp/Resources
with the right nameUIAppFonts
Maybe even generate an extension to
Font
that would let you use the font in a typesafe way.Then,
skip font
could suggest:The text was updated successfully, but these errors were encountered: