455 views
in GUI Development by

Hi,

I'm importing a font with Height=20px using the 'popular' setting & the windows converter is set in the profile.

However, when I use the font the Ascent is 18 and the Descent is 5 which adds to 23, meaning the characters are wrong. (The font is being used in Adobe XD tool as 20px)

According to this page:

https://doc.embedded-wizard.de/height-attr?v=12.00

Height should be Ascent + Descent using the popular setting.

(This is embedded wizard 12.03)

Am I missing something here?

Using 18 and 17 as the height in EW makes it 21 and 19 pixels high.

(I cannot share the font as it is not mine.)

EDIT: Changing the font rendered to FreeType seems to fix this...? Is this expected?

1 Answer

0 votes
by

Hello harbottle,

Changing the font rendered to FreeType seems to fix this...? Is this expected?

difficult to deduce why the conversion produces different metric values. Possibly there is some peculiarity in the combination between the Windows font engine and the used font.

The font is being used in Adobe XD tool as 20px

I suppose, Adobe XD tool does not depend on Windows font engine. The results therefore may differ. If you are interested in a more profund analysis, we would need the font file.

Best regards

Paul Banach

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...