slanted font feature: LMTX vs. MkIV
Dear list, I have the following sample (using current latest from 2023.08.27 13:48): \setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext Using LMTX higher font size gives less slanted text (or not at all). Using MkIV text is slanted fine, independent from font size. Could anyone confirm the issue? Many thanks for your help, Pablo
Pablo Rodriguez schrieb am 02.09.2023 um 10:25:
Dear list,
I have the following sample (using current latest from 2023.08.27 13:48):
\setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext
Using LMTX higher font size gives less slanted text (or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes. \starttext \dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par} \stoptext Wolfgang
On 9/2/2023 11:45 AM, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 02.09.2023 um 10:25:
Dear list,
I have the following sample (using current latest from 2023.08.27 13:48):
\setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext
Using LMTX higher font size gives less slanted text (or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par}
\stoptext in lpdf-lmt.lmt you can try:
l 593 tmsy = tmsy * sc l 610 tmsy = tmsy * f_y_scale ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen schrieb am 02.09.2023 um 11:53:
On 9/2/2023 11:45 AM, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 02.09.2023 um 10:25:
Dear list,
I have the following sample (using current latest from 2023.08.27 13:48):
\setupinteractionscreen[option=max] \definefontfamily[maf][rm][DejaVu Sans] [sl={style:tf, features:{default,slanted}}] \setupbodyfont[maf, 8pt] \setupfittingpage[offset=1ex] \starttext \startTEXpage a {\em b} \stopTEXpage \startTEXpage[foregroundstyle={\setupbodyfont[100pt]}] a {\em b} \stopTEXpage \stoptext
Using LMTX higher font size gives less slanted text (or not at all).
Using MkIV text is slanted fine, independent from font size.
Could anyone confirm the issue?
I can confirm the slant decreases at larger font sizes.
\starttext
\dostepwiserecurse{10}{100}{1} {{\switchtobodyfont[#1pt]#1pt:\definedfont[Serif*slanted]\vrule\relax S\vrule\relax lanted}\par}
\stoptext in lpdf-lmt.lmt you can try:
l 593
tmsy = tmsy * sc
l 610
tmsy = tmsy * f_y_scale
I get now with LMTX the same output as I get with MkIV, the slant stays the same for all sizes. Wolfgang
On 9/2/23 12:18, Wolfgang Schuster wrote:
Hans Hagen schrieb am 02.09.2023 um 11:53: [...]
in lpdf-lmt.lmt you can try:
l 593
tmsy = tmsy * sc
l 610
tmsy = tmsy * f_y_scale
I get now with LMTX the same output as I get with MkIV, the slant stays the same for all sizes.
This works also perfectly fine for me now. Many thanks for the fix and the help, Hans and Wolfgang. Sorry, but I don‘t know why this doesn‘t get the slanted font as bold (I know I should know better, but I‘m stuck at this): \definefontfamily[mainface][rm][DejaVu Sans] [sl≃style:bf] \setupbodyfont [mainface, 100pt] \starttext \startTEXpage[offset=1ex] a {\em b} \stopTEXpage \stoptext Many thanks for your help again, Pablo
Pablo Rodriguez schrieb am 02.09.2023 um 12:35:
[...] Sorry, but I don‘t know why this doesn‘t get the slanted font as bold (I know I should know better, but I‘m stuck at this):
\definefontfamily[mainface][rm][DejaVu Sans] [sl≃style:bf]
You're using the wrong symbol (you have a math operator in your example) to assign a value to a key. Wolfgang
On 9/2/23 12:42, Wolfgang Schuster wrote:
Pablo Rodriguez schrieb am 02.09.2023 um 12:35:
[...] Sorry, but I don‘t know why this doesn‘t get the slanted font as bold (I know I should know better, but I‘m stuck at this):
\definefontfamily[mainface][rm][DejaVu Sans] [sl≃style:bf]
You're using the wrong symbol (you have a math operator in your example) to assign a value to a key.
Many thanks for your reply, Wolfgang. As always, many thanks for your valuable help. Somehow I copied the assymptopically equal to character (0x2243) to typeset I cannot remember what, and I also placed it there (instead of the standard equals char [0x003D]). Sorry, I‘m afraid I wasn‘t able to spot the difference (at a relative small font size). Many thanks for your help again, Pablo
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster