Re: [csswg-drafts] [css-fonts] Reconsider the definition of "first available font" (#4796)

Blink's logic is in [FontFallbackList::DeterminePrimarySimpleFontData](https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/fonts/font_fallback_list.cc?type=cs&sq=package:chromium&g=0&l=129):
```c++
    if (font_data->IsSegmented() &&
        !ToSegmentedFontData(font_data)->ContainsCharacter(kSpaceCharacter))
      continue;
```
and as far as I can read from our code, [SegmentedFontData::ContainsCharacter](https://cs.chromium.org/chromium/src/third_party/blink/renderer/platform/fonts/segmented_font_data.cc?type=cs&sq=package:chromium&g=0&l=43) does not seem to check `cmap`.

@jfkthame, do you have a simple test case I can double check? /cc @drott

-- 
GitHub Notification of comment by kojiishi
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4796#issuecomment-591216708 using your GitHub account

Received on Wednesday, 26 February 2020 03:14:43 UTC