Status Update
Comments
cl...@google.com <cl...@google.com> #2
Pixel 6
- Build: TP1A.220905.004
Debugging this together I noted the only difference between google-sans* and google-sans-text* is opsz, which seems suspect.
<family customizationType="new-named-family" name="google-sans">
<font weight="400" style="normal">GoogleSans-Regular.ttf
<axis tag="GRAD" stylevalue="0"/>
<axis tag="opsz" stylevalue="18.0"/>
<axis tag="wght" stylevalue="400"/>
</font>
...
</family>
<family customizationType="new-named-family" name="google-sans-text">
<font weight="400" style="normal">GoogleSans-Regular.ttf
<axis tag="GRAD" stylevalue="0"/>
<axis tag="opsz" stylevalue="17.0"/>
<axis tag="wght" stylevalue="400"/>
</font>
This seems suspect, as google-sans and google-sans-text have different letter shapes that I don't believe would be covered by opsz
Rod, it looks like we might be shipping the wrong font for google-sans-text
on production Pixel. Can you advise and forward as appropriate.
ap...@google.com <ap...@google.com> #3
Pixel 6 TP1A
cl...@google.com <cl...@google.com> #4
Context from dupin@ introduced with VF in ag/13832548
It looks like we are missing specializations there. Rod can you advise?
ap...@google.com <ap...@google.com> #5
google-sans* and google-sans-text* differ only in 'opsz' and that is expected. Both the styles/variations are part of GoogleSans-Regular.ttf.
Can you compare 'G' in google-sans-medium and google-sans-text-medium? That should give us an idea if the right variation is being rendered.
na...@google.com <na...@google.com> #6
The Google Sans to Google Sans Text variable font style transition is defined on the opsz axis and takes place at the 17/18 transition point (>= 18 is GS, < 18 is GST). There are indeed letterform changes along the opsz axis transition. The easiest one to use for GS vs. GST comparisons is the upper case G
(U+0047). It has a round logo form in GS and a more condensed shape with a spur on the right side heading down to the baseline in GST. The configurations in
The axis values for GS Text Medium weight should be:
<axis tag="GRAD" stylevalue="0"/>
<axis tag="opsz" stylevalue="17.0"/>
<axis tag="wght" stylevalue="500"/>
and use the GoogleSans-Regular.ttf
variable font for Roman and GoogleSans-Italic.ttf
variable font for Italic. It looks like they are properly defined for google-sans-text-medium
in the fonts_customization.xml
file that you linked in
Is the concern here that you are seeing file paths that suggest you are using "Google Sans" rather than "Google Sans Text", or that you are seeing text formatted with the "Google Sans" style rather than the "Google Sans Text" style?
tp...@gmail.com <tp...@gmail.com> #7
Ack. Thank you for the explination.
I've confirmed the font renders correctly.
jb...@google.com <jb...@google.com> #8
Attached screenshot of basic Compose app
Column {
Text(
text = "GGGGGG google-sans",
fontSize = 60.sp,
fontFamily = FontFamily(
Font(
DeviceFontFamilyName("google-sans"),
)
)
)
Text(
text = "GGGGG google-sans-text",
fontSize = 60.sp,
fontFamily = FontFamily(
Font(
DeviceFontFamilyName("google-sans-text"),
)
)
)
}
Description