Re: [NTG-context] Fallbacks in text font interfere with math accents
Am 10.06.23 um 19:46 schrieb Mikael Sundqvist via ntg-context: Hi, On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context wrote: Hi, this is probably for Hans & Mikael, but maybe someone else has a hint: If I set a fallback for my body font to catch all missing characters, some math accents get replaced by small bold uppercase characters (I found hat by K and ring by T so far). I tried [fallbacks=] for math to no avail. My example uses Cambria, but it’s the same with other fonts. (BTW, in \bar{b} with Libertinus, the bar looks too high.) I leave the font fallbacks to Hans or somebody else, but for the \bar one can argue that the "305 glyph in Libertinus Math sits too high. This is adjusted for in the goodie file in the next upload. I could fix a few math accents (e.g. widebar) by limiting my replacements to necessary glyphs, but many other problems remain (e.g. breve, check, dot, widehat). It also affects the sizing of limiters and e.g. underbraces. Why do font fallbacks for non-math fonts affect math at all? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Fallbacks in text font interfere with math accents
Hi, On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context wrote: > > Hi, this is probably for Hans & Mikael, but maybe someone else has a hint: > > If I set a fallback for my body font to catch all missing characters, > some math accents get replaced by small bold uppercase characters (I > found hat by K and ring by T so far). > > I tried [fallbacks=] for math to no avail. > > My example uses Cambria, but it’s the same with other fonts. > > (BTW, in \bar{b} with Libertinus, the bar looks too high.) I leave the font fallbacks to Hans or somebody else, but for the \bar one can argue that the "305 glyph in Libertinus Math sits too high. This is adjusted for in the goodie file in the next upload. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] fallbacks
I believe it's a bug. https://github.com/contextgarden/context/blob/d025bcdf995be6951f69fed6869048ab22491b9e/tex/context/base/mkxl/font-col.lmt#L278 the newchar[] table, which should contain all chars supported by the fallback termes font if I'm not mistaken, turns out to have only 392 chars within 0x20-0x30C, far away from 0x2329-0x232A. On Sun, 23 Apr 2023 at 03:26, Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote: > Thank you, Pablo, but that doesn't help. I know how to use fallback > fonts. I was wondering if the check key is working as it should. > > Thomas > > On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote: > > Hi Thomas, > > > > I don’t know what check does (maybe just check?), but the standard > > behaviour with \definefallbackfamily is only to fall back when the > > character is missing from the main font. > > > > To force all characters from the range in the fallback font, "force=yes" > > is required. > > > > Here you have a minimal sample (which doesn‘t use "preset=range:greek"), > > adding "force=yes" gets all Greek glyphs from GFS Heraklit: > > > >\definefallbackfamily [presentation] [serif] [GFSHeraklit] > >[range={greekandcoptic, greekextended}] > >\definefontfamily [presentation] [serif] [TeXGyrePagella] > >\setupbodyfont [presentation,12pt] > > > >\starttext > >Pπμᾷσδ > >\stoptext > > > > Just in case it might help, > > -- > Prof. Dr. Thomas A. Schmitz > Institut für Klassische und Romanische Philologie > Universität Bonn > Am Hof 1e > 53113 Bonn > http://www.philologie.uni-bonn.de/de/personal/schmitz > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] fallbacks
Thank you, Pablo, but that doesn't help. I know how to use fallback fonts. I was wondering if the check key is working as it should. Thomas On 4/22/23 20:33, Pablo Rodriguez via ntg-context wrote: Hi Thomas, I don’t know what check does (maybe just check?), but the standard behaviour with \definefallbackfamily is only to fall back when the character is missing from the main font. To force all characters from the range in the fallback font, "force=yes" is required. Here you have a minimal sample (which doesn‘t use "preset=range:greek"), adding "force=yes" gets all Greek glyphs from GFS Heraklit: \definefallbackfamily [presentation] [serif] [GFSHeraklit] [range={greekandcoptic, greekextended}] \definefontfamily [presentation] [serif] [TeXGyrePagella] \setupbodyfont [presentation,12pt] \starttext Pπμᾷσδ \stoptext Just in case it might help, -- Prof. Dr. Thomas A. Schmitz Institut für Klassische und Romanische Philologie Universität Bonn Am Hof 1e 53113 Bonn http://www.philologie.uni-bonn.de/de/personal/schmitz ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] fallbacks
On 4/22/23 18:05, Thomas A. Schmitz via ntg-context wrote: > Hi all, > > today, I was struggling with a fallback font I had defined, and I > discovered that the key "check" doesn't work as I expected. > [...] > If I have "check=no," the characters are taken from termes and replaced. > I was under the impression that "check" should, well, check if the > characters are not in the main font and fall back to the fallback font > if they are not, but this doesn't appear to be the case. Hi Thomas, I don’t know what check does (maybe just check?), but the standard behaviour with \definefallbackfamily is only to fall back when the character is missing from the main font. To force all characters from the range in the fallback font, "force=yes" is required. Here you have a minimal sample (which doesn‘t use "preset=range:greek"), adding "force=yes" gets all Greek glyphs from GFS Heraklit: \definefallbackfamily [presentation] [serif] [GFSHeraklit] [range={greekandcoptic, greekextended}] \definefontfamily [presentation] [serif] [TeXGyrePagella] \setupbodyfont [presentation,12pt] \starttext Pπμᾷσδ \stoptext Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] fallbacks for characters
On Oct 16, 2008, at 11:26 AM, Wolfgang Schuster wrote: On Thu, Oct 16, 2008 at 9:47 AM, Thomas A. Schmitz [EMAIL PROTECTED] wrote: Hi all, the answer to this one may be completely obvious, but I haven't found anything: I know we can define fallback fonts in mkiv, but is it possible to define fallbacks for single characters. Let's take 0x0113, emacron. \definefontfallback [myfallback] [Fallbackfont] [0x0113] [force=yes|no,check=yes|no] % check : only replace when present in replacement font (default: no) % force : force replacent even when basefont has glyph (default: yes) Is it possible to define if character is present in current font, use it; else \buildtextaccent\macron e ? Wolfgang, thanks for your answer! But if I understand definefontfallback correctly, this will define a replacement font - that's not what I want. I want to take glyphs from the same font, either the matching glyph or a composite one. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] fallbacks for characters
On Thu, Oct 16, 2008 at 9:47 AM, Thomas A. Schmitz [EMAIL PROTECTED] wrote: Hi all, the answer to this one may be completely obvious, but I haven't found anything: I know we can define fallback fonts in mkiv, but is it possible to define fallbacks for single characters. Let's take 0x0113, emacron. \definefontfallback [myfallback] [Fallbackfont] [0x0113] [force=yes|no,check=yes|no] % check : only replace when present in replacement font (default: no) % force : force replacent even when basefont has glyph (default: yes) Is it possible to define if character is present in current font, use it; else \buildtextaccent\macron e ? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___