Fix default font used in VR text element
The VR code is using the default font "sans-serif". The Font (and FontList) on that platform is the PlatformFontSkia When creating the font with the literal "sans-serif", there is not matched typeface. The function creating the typeface has a fallback path that try "sans" which is the resulting typeface used. see: https://cs.chromium.org/chromium/src/ui/gfx/platform_font_skia.cc?l=53 This CL avoid to use that fallback logic. Instead, we rely on the FontList behavior to use the default system font with the default constructor. R=alcooper@chromium.org Change-Id: I612502f32d77787b8f0346c0fc23cd65b68e3013 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847902Reviewed-by:Klaus Weidner <klausw@chromium.org> Commit-Queue: Etienne Bergeron <etienneb@chromium.org> Cr-Commit-Position: refs/heads/master@{#704279}
Showing
Please register or sign in to comment