Skip to content

Commit c02ac05

Browse files
committed
docs: add entry related to typefaces
1 parent 2429117 commit c02ac05

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

doc-tools/doc-pages/src/pages/PageFAQ.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@ export default function PageFAQ() {
132132
</RefDoc>
133133
.
134134
</Paragraph>
135+
<Paragraph>
136+
Also note that <InlineCode>fontWeight</InlineCode> and{' '}
137+
<InlineCode>fontStyle</InlineCode> typefaces modifiers, which might
138+
be set by default for some tags such as <RefHtmlElement name="h1" />
139+
, will cause the font to be missed on Android if you haven't
140+
registered your font with typefaces, e.g. via{' '}
141+
<Hyperlink url="https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml">
142+
XML fonts
143+
</Hyperlink>
144+
. See{' '}
145+
<Hyperlink url="https://stackoverflow.com/a/70247374/2779871">
146+
this StackOverflow answer for a step-by-step guide
147+
</Hyperlink>
148+
.
149+
</Paragraph>
135150
</Section>
136151
<Section title="Line breaks (<br>) seem to take up too much vertical space">
137152
<Paragraph>

0 commit comments

Comments
 (0)