Chromium Code Reviews
DescriptionPlatformFontMac: Use a default NSFont when an invalid font is passed.
Currently RenderTextHarfbuzz crashes trying to find fallbacks for an
null font.
Ensuring PlatformFontMac never has a null NSFont is similar to the
approach in PlatformFontLinux (its anon::CreateSkTypeface(..) never
returns null). Having this invariant allows some logic in
PlatformFontMac to be simplified.
BUG=699820
Review-Url: https://codereview.chromium.org/2959913002
Cr-Commit-Position: refs/heads/master@{#483223}
Committed: https://chromium.googlesource.com/chromium/src/+/0f5cbd14b845f2795a87e9caa7e048e2ccf95947
Patch Set 1 #Patch Set 2 : Extract some tracing from other platforms #Patch Set 3 : Use a default font #
Total comments: 1
Messages
Total messages: 23 (19 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||