[Webkit-unassigned] [Bug 155319] Font features specified in @font-face blocks can't force us down the complex text codepath

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 10 14:49:24 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=155319

--- Comment #23 from Shiki Suen <shikisuen at outlook.com> ---
(In reply to comment #20)
> The "、" character is U+3001, which lies outside of the unicode-range in the
> example, so we are falling back to AppleSDGothicNeo-Regular to show it.

Yep. That fits the current situation of how "font-variant-east-asian: Proportional Width" deal with CJK punctuations. I just feel weird that they looks still full-width monospaced in such "proportional" occasion, that's why I prefer 'palt' (both kana glyphs and CJK punctuation marks are proportional), which is not only preferred by myself but those Japanese visiting students in my University (I just demonstrated that webpage with some of them today, and they prefer the latter case which was having 'palt' enabled).

(In reply to comment #19)
> This is because of a disagreement between the fast and complex text code
> paths. In particular, whenever font features are applied, we always want to
> go down the complex text code path. However, when they are applied in an
> @font-face block, we don't realize this and we may still go down the fast
> code path.

Regarding your comment #19 (quoted as follows), the reason I have necessities on such complex text code path is because of the following case: Enabling "font-variant-east-asian: Proportional Width" could trigger bug 155299 and other unknown bug in Safari.

You could apply a global CSS definition to your browser, which consists as follows:
        * {font-variant-east-asian: Proportional-Width !important;}
or
        * { -moz-font-feature-settings: "palt" !important;
              -webkit-font-feature-settings: "palt" !important;
              font-feature-settings: "palt" !important;
            }
You could definitely find that some websites could show unwanted spaces or linewraps on webpage.
(e.g. Twitter, all https:// marks are defined as invisible in CSS. However, as the definitions above enabled globally, those invisible parts becomes unwanted spaces.)

That's why I am thinking of using complex text code as workarounds: using only kana glyphs from certain Japanese fonts and make them proportional into a standalone @font-face virtual font, and reading CJK Punctuation marks from another font.

P.S.: Frankly speaking, 'palt' is still not ideal enough as the CJK period symbol is too condensed in its space. However, we have no power to ask font manufacturers to improve this. Thus, we have to use @font-face in combination with unicode-range to fit our necessities.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160310/867af38e/attachment.html>


More information about the webkit-unassigned mailing list