
On 6/15/2025 7:13 PM, Pablo Rodriguez via ntg-context wrote:
On 6/15/25 16:46, paper@mgrz.de wrote:
[...] Ubuntu Sans (Variable) makes this possible, but upper diacritics (eg. Ä) are not scaled when width is changed, the lower diacritics (eg. ą) seem to work as desired.
Hi,
what I see (using the sample below) is that upper diacritics are misplaced (wrong centered), but not wrong scaled.
\definefontfeature [one] [axis={wght=100,wdth=75}] \definefontfeature [two] [axis={wght=800,wdth=100}] \definefontfamily [one] [rm] [Ubuntu Sans] [features={default,one}] \definefontfamily [two] [rm] [Ubuntu Sans] [features={default,two}] \setupbodyfont [one]
\starttext \startTEXpage[offset=1dk] ÄąÖöÜü\\ \switchtobodyfont[two] ÄąÖöÜü \stopTEXpage \stoptext
Unfortunately, I can't narrow down the problem any further. I can change the width with Google Fonts without any errors, and Inkscape doesn't cause any problems either. I can confirm that ConTeXt cannot match the same results as Inkscape, where all diacritics where placed properly in relation to their main characters.
How can I fix that?
ConTeXt supports variable fonts, but from time to time glitches may appear.
Sorry, Hans, could you check what it seems to be misplaced diacritcs in variable fonts?
but what is weird is that it only happens in one direction, compare < 100 and > 100 (there is some delta code that we don't yet apply but when i test with that it looks like that can be ignored, very tiny values) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------