
On 6/15/2025 4:46 PM, paper@mgrz.de wrote:
Hi, I really like the idea of using a single font and only changing variables and using it for the whole document. 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. 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. How can I fix that?
Thanks for support
mwe : Context Version; 2025.06.12 14:21
\definefontfeature [fntubuntf] [axis={wght=300,wdth=75}] \definefontfamily [ubuntufont] [ss] [Ubuntu] [tf={file:{UbuntuSans[wdth,wght].ttf},features:fntubuntf,}] \setupbodyfont [ubuntufont, ss]
\starttext ÄöÖöÜü \stoptext
The accents are part of the glyph (so not separate and anchored). \definefontfeature [fntubuntfa] [default] \definefontfeature [fntubuntfb] [default] [axis={wght=300,wdth=75}] \definefontfeature [fntubuntfc] [default] [axis={wght=600,wdth=75}] \definefontfeature [fntubuntfd] [default] [axis={wght=300,wdth=150}] \definefontfeature [fntubuntfe] [default] [axis={wght=300,wdth=100}] \showglyphs \startTEXpage[offset=1ts] \definedfont[file:UbuntuSansVariable.ttf*fntubuntfa] ÄöÖöÜü\par \definedfont[file:UbuntuSansVariable.ttf*fntubuntfb] ÄöÖöÜü\par \definedfont[file:UbuntuSansVariable.ttf*fntubuntfc] ÄöÖöÜü\par \definedfont[file:UbuntuSansVariable.ttf*fntubuntfd] ÄöÖöÜü\par \definedfont[file:UbuntuSansVariable.ttf*fntubuntfe] ÄöÖöÜü \stopTEXpage it looks like when the width goes negative relative to the default 100 there is some sign issue but i wonder at what end that error is because the main shape is ok 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 -----------------------------------------------------------------