Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: chinaChina and its Great FirewallChina and its Great Firewalla: typographyText rendering, possibly libtxtText rendering, possibly libtxtengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Description
Currently, ideographic baseline is implemented as:
(paragraph.cc)
ideographic_baseline_ =
(metrics.fUnderlinePosition - metrics.fAscent) * style.height;
This appears to be incorrect and was only meant to be a stand-in that was mostly correct for most cases.
We should try to sort this out as it particularly impacts China.
Reacted by Liloupar
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: chinaChina and its Great FirewallChina and its Great Firewalla: typographyText rendering, possibly libtxtText rendering, possibly libtxtengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.team-engineOwned by Engine teamOwned by Engine teamtriaged-engineTriaged by Engine teamTriaged by Engine team
Activity
GaryQian commentedon Oct 3, 2018
I suspect #19063 may be caused by this, although Flutter does not seem to be currently using the ideographic baseline yet.
GaryQian commentedon Oct 3, 2018
cc @jason-simmons @chinmaygarde
Any idea how the existing spec(s) define(s) ideographic baseline as numerically? The resources I found seem to be rather vague about exactly what it is.
Different specs across the web define it either generically or in terms of each other (eg, w3 does whatever css does whatever opentype and so on)
GaryQian commentedon Oct 3, 2018
flutter-team-archive/engine#6422
GaryQian commentedon Oct 3, 2018
After some semi-circular spec dependencies, these resources provide a somewhat clearer picture of the definition:
https://docs.microsoft.com/en-us/typography/opentype/spec/baselinetags#ideoembox (OpenType)
https://drafts.csswg.org/css-inline-3/#valdef-alignment-baseline-ideographic (CSS)
GaryQian commentedon Oct 4, 2018
https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-textbaseline
defines the ideographic baseline differently than CSS and OpenType, where the ideographic baseline is not equivalent to the bottom of the EM square.
GaryQian commentedon Oct 4, 2018
Rolled into Flutter by 00bcffd
GaryQian commentedon Jul 3, 2019
It seems that what we have is still not correct.
fzyzcjy commentedon Jan 16, 2022
Hi is there any updates? (problem here: #96713)
LongCatIsLooong commentedon Apr 23, 2026