We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to specification, fontBoundingBoxAscent returns following.
The distance from the horizontal line indicated by the textBaseline attribute to the ascent metric of the first available font.
ascent metric is generally takes from font metrics. (see https://drafts.csswg.org/css-inline/#ascent-descent)
node-canvas seems implemented it in emHeightAscent. https://github.com/Automattic/node-canvas/blob/master/src/CanvasRenderingContext2d.cc#L2778-L2779
emHeightAscent
about em-square, ascent and descent, see https://learn.microsoft.com/en-us/typography/opentype/spec/ttch01#funits-and-the-em-square .
my investigation result on Firefox.
related #1940
npm list canvas
yarn list canvas
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to specification, fontBoundingBoxAscent returns following.
ascent metric is generally takes from font metrics.
(see https://drafts.csswg.org/css-inline/#ascent-descent)
node-canvas seems implemented it in
emHeightAscent
.https://github.com/Automattic/node-canvas/blob/master/src/CanvasRenderingContext2d.cc#L2778-L2779
about em-square, ascent and descent, see https://learn.microsoft.com/en-us/typography/opentype/spec/ttch01#funits-and-the-em-square .
my investigation result on Firefox.
related #1940
Your Environment
npm list canvas
oryarn list canvas
):The text was updated successfully, but these errors were encountered: