satori icon indicating copy to clipboard operation
satori copied to clipboard

Text off-center to its bounding box

Open OfficialCRUGG opened this issue 2 years ago • 5 comments

Bug report

Description / Observed Behavior

When using a custom font (at least Poppins), the text is off-center inside its bounding box.

image

image

Expected Behavior

The text should be centered correctly, just like in Browsers

Reproduction

Can't provide a sharable reproduction on the OG Playground because this needs custom fonts. The issue itself should be pretty self-explanatory though I believe

Additional Context

Tested on Satori 0.1.1 & 0.0.45; issue occurs on both versions

OfficialCRUGG avatar Jan 15 '23 21:01 OfficialCRUGG

This is likely caused by different fonts' x height implementations.

shuding avatar Jan 17 '23 02:01 shuding

This is likely caused by different fonts' x height implementations.

any update?

ppjjzz avatar Jun 07 '23 05:06 ppjjzz

@Jackie1210 can u fix this bug?

ppjjzz avatar Jun 15 '23 17:06 ppjjzz

@ppjjzz I am busy on my work recently😞

Jackie1210 avatar Jun 17 '23 15:06 Jackie1210

@shuding can u fix this bug?

ppjjzz avatar Jul 05 '23 03:07 ppjjzz