Does anyone know how to use CustomFont in newer versions? All instructions and online help are quite outdated, and it seems that the old syntax no longer works.
The content of the non-working state:
layout.xml:
<layout id="WatchFace">
<label id="HourLabel" x="147" y="center" font="???" justification="Graphics.TEXT_JUSTIFY_CENTER" color="Graphics.COLOR_RED"/>
</layout>
fonts.xml:
<resources>
<font id="CustomFont" filename="/fonts/customFont.fnt" />
</resources>
I have also tried using .ttf, .otf, .fon, and .fnt formats, but it always returns the following error:
Unable to process ‘font’ resources: “Program” is not a valid key/value pair.
How are custom fonts used in API 5.0.1?
Thank you.