Re: [NTG-context] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context

Am 01.08.22 um 20:43 schrieb denis.ma...@unibe.ch:

Hi,
I have used more than one fallback, but each fallback is for a different 
character range


Thank you.

I tried:

\definefontfallback[seguiFB]
  [file:seguisym.ttf]
%  [0x0-0xF]
  [0x0007F-0xF]
  [check=yes,force=no]

\definefontfallback[tildeFB]
  [file:seguisym.ttf]
  [0x0007E-0x0007E]
  [force=yes]

\definetypeface [start] [tt] [mono]  [modern] 
[default][fallbacks={tildeFB}] % ,seguiFB



I can either replace the one character or fall back for all missing 
characters, but not both. Maybe it’s the mixture of force=yes/no.


For the emoji fallback, I’d need to define all the necessary ranges...

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] font fallbacks

2022-08-01 Thread Denis Maier via ntg-context
Hi,
I have used more than one fallback, but each fallback is for a different 
character range
Denis

Von: ntg-context  im Auftrag von Henning Hraban 
Ramm via ntg-context 
Gesendet: Montag, 1. August 2022 19:42:51
An: Henning Hraban Ramm via ntg-context
Cc: Henning Hraban Ramm
Betreff: Re: [NTG-context] font fallbacks

Nobody?
I couldn’t find an example of more than one fallback, so I guess that’s
not supported?

Hraban

Am 30.07.22 um 15:51 schrieb Henning Hraban Ramm via ntg-context:
> Hi,
> I thought I could use more than one fallback font, but as soon as I list
> fallbacks, they stop working.
>
> In my example, I’d like to take all missing glyphs from Segoe UI
> Symbols, and what’s still missing (emojis) from EmojiOneColor,
> preferably without specifying the exact range.
>
> Additionally, I want to replace the tilde ~ of LM Modern:
>
> """
> \definefontfallback[seguiFB]
>[file:seguisym.ttf]
>[0x0-0xF]
>[check=yes,force=no]
>
> \definefontfallback[emoneFB]
>[name:EmojiOneColor]
>[0x0-0xF]
>[check=yes,force=no]
>
> % replace tilde in LM
> \definefontfallback[tildeFB]
>[file:seguisym.ttf]
>[0x0007E-0x0007E]
>[force=yes]
>
>
> \starttypescript [start]
>\definetypeface [start] [rm] [serif] [cambria]
> [default][fallbacks={seguiFB,emoneFB}]
>\definetypeface [start] [ss] [sans]  [modern]
> [default][fallbacks={seguiFB,emoneFB}]
>\definetypeface [start] [tt] [mono]  [modern]
> [default][fallbacks={seguiFB,tildeFB,emoneFB}]
>\definetypeface [start] [mm] [math]  [modern]
> [default][fallbacks={seguiFB,emoneFB}]
> \stoptypescript
>
>
> \setupbodyfont[start,rm,12pt]
>
> \starttext
>
> \Omega\ (Omega) and \aleph\ (Aleph)
>
> \startbuffer[example]
> start missing characters: lmmono10-regular.otf
> 7  U+00327  ̧  COMBINING CEDILLA
> 7  U+00335  ̵  COMBINING SHORT STROKE OVERLAY
>14  U+003B7  η  GREEK SMALL LETTER ETA
> 7  U+021A9  ↩  LEFTWARDS ARROW WITH HOOK
>   350  U+02500  ─  BOX DRAWINGS LIGHT HORIZONTAL
>98  U+02502  │  BOX DRAWINGS LIGHT VERTICAL
>42  U+02514  └  BOX DRAWINGS LIGHT UP AND RIGHT
>   133  U+0251C  ├  BOX DRAWINGS LIGHT VERTICAL AND RIGHT
>   154  U+02772  ❲  LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT
>   154  U+02773  ❳  LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT
>14  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
> stop missing characters
> start missing characters: cambria.ttc
> 9  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
> 9  U+0FFFD  �  REPLACEMENT CHARACTER
> stop missing characters
> start missing characters: cambriai.ttf
>   266  U+0276C  ❬  MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
>   266  U+0276D  ❭  MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT
> stop missing characters
> \stopbuffer
>
> \typebuffer[example]
>
> \startlines
> \getbuffer[example]
>
> {\ss\getbuffer[example]}
> \stoplines
>
> \tex{abra}\arg{...}
> \type{kadabra} \type{~~~}
>
> \stoptext
> """
>
> What’s wrong?
>
> 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
> ___

___
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] font fallbacks

2022-08-01 Thread Henning Hraban Ramm via ntg-context

Nobody?
I couldn’t find an example of more than one fallback, so I guess that’s 
not supported?


Hraban

Am 30.07.22 um 15:51 schrieb Henning Hraban Ramm via ntg-context:

Hi,
I thought I could use more than one fallback font, but as soon as I list 
fallbacks, they stop working.


In my example, I’d like to take all missing glyphs from Segoe UI 
Symbols, and what’s still missing (emojis) from EmojiOneColor, 
preferably without specifying the exact range.


Additionally, I want to replace the tilde ~ of LM Modern:

"""
\definefontfallback[seguiFB]
   [file:seguisym.ttf]
   [0x0-0xF]
   [check=yes,force=no]

\definefontfallback[emoneFB]
   [name:EmojiOneColor]
   [0x0-0xF]
   [check=yes,force=no]

% replace tilde in LM
\definefontfallback[tildeFB]
   [file:seguisym.ttf]
   [0x0007E-0x0007E]
   [force=yes]


\starttypescript [start]
   \definetypeface [start] [rm] [serif] [cambria] 
[default][fallbacks={seguiFB,emoneFB}]
   \definetypeface [start] [ss] [sans]  [modern] 
[default][fallbacks={seguiFB,emoneFB}]
   \definetypeface [start] [tt] [mono]  [modern] 
[default][fallbacks={seguiFB,tildeFB,emoneFB}]
   \definetypeface [start] [mm] [math]  [modern] 
[default][fallbacks={seguiFB,emoneFB}]

\stoptypescript


\setupbodyfont[start,rm,12pt]

\starttext

\Omega\ (Omega) and \aleph\ (Aleph)

\startbuffer[example]
start missing characters: lmmono10-regular.otf
    7  U+00327  ̧  COMBINING CEDILLA
    7  U+00335  ̵  COMBINING SHORT STROKE OVERLAY
   14  U+003B7  η  GREEK SMALL LETTER ETA
    7  U+021A9  ↩  LEFTWARDS ARROW WITH HOOK
  350  U+02500  ─  BOX DRAWINGS LIGHT HORIZONTAL
   98  U+02502  │  BOX DRAWINGS LIGHT VERTICAL
   42  U+02514  └  BOX DRAWINGS LIGHT UP AND RIGHT
  133  U+0251C  ├  BOX DRAWINGS LIGHT VERTICAL AND RIGHT
  154  U+02772  ❲  LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT
  154  U+02773  ❳  LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT
   14  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
stop missing characters
start missing characters: cambria.ttc
    9  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
    9  U+0FFFD  �  REPLACEMENT CHARACTER
stop missing characters
start missing characters: cambriai.ttf
  266  U+0276C  ❬  MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
  266  U+0276D  ❭  MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT
stop missing characters
\stopbuffer

\typebuffer[example]

\startlines
\getbuffer[example]

{\ss\getbuffer[example]}
\stoplines

\tex{abra}\arg{...}
\type{kadabra} \type{~~~}

\stoptext
"""

What’s wrong?

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
___


___
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
___


[NTG-context] font fallbacks

2022-07-30 Thread Henning Hraban Ramm via ntg-context

Hi,
I thought I could use more than one fallback font, but as soon as I list 
fallbacks, they stop working.


In my example, I’d like to take all missing glyphs from Segoe UI 
Symbols, and what’s still missing (emojis) from EmojiOneColor, 
preferably without specifying the exact range.


Additionally, I want to replace the tilde ~ of LM Modern:

"""
\definefontfallback[seguiFB]
  [file:seguisym.ttf]
  [0x0-0xF]
  [check=yes,force=no]

\definefontfallback[emoneFB]
  [name:EmojiOneColor]
  [0x0-0xF]
  [check=yes,force=no]

% replace tilde in LM
\definefontfallback[tildeFB]
  [file:seguisym.ttf]
  [0x0007E-0x0007E]
  [force=yes]


\starttypescript [start]
  \definetypeface [start] [rm] [serif] [cambria] 
[default][fallbacks={seguiFB,emoneFB}]
  \definetypeface [start] [ss] [sans]  [modern] 
[default][fallbacks={seguiFB,emoneFB}]
  \definetypeface [start] [tt] [mono]  [modern] 
[default][fallbacks={seguiFB,tildeFB,emoneFB}]
  \definetypeface [start] [mm] [math]  [modern] 
[default][fallbacks={seguiFB,emoneFB}]

\stoptypescript


\setupbodyfont[start,rm,12pt]

\starttext

\Omega\ (Omega) and \aleph\ (Aleph)

\startbuffer[example]
start missing characters: lmmono10-regular.otf
   7  U+00327  ̧  COMBINING CEDILLA
   7  U+00335  ̵  COMBINING SHORT STROKE OVERLAY
  14  U+003B7  η  GREEK SMALL LETTER ETA
   7  U+021A9  ↩  LEFTWARDS ARROW WITH HOOK
 350  U+02500  ─  BOX DRAWINGS LIGHT HORIZONTAL
  98  U+02502  │  BOX DRAWINGS LIGHT VERTICAL
  42  U+02514  └  BOX DRAWINGS LIGHT UP AND RIGHT
 133  U+0251C  ├  BOX DRAWINGS LIGHT VERTICAL AND RIGHT
 154  U+02772  ❲  LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT
 154  U+02773  ❳  LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT
  14  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
stop missing characters
start missing characters: cambria.ttc
   9  U+0278A  ➊  DINGBAT NEGATIVE CIRCLED SANS-SERIF DIGIT ONE
   9  U+0FFFD  �  REPLACEMENT CHARACTER
stop missing characters
start missing characters: cambriai.ttf
 266  U+0276C  ❬  MEDIUM LEFT-POINTING ANGLE BRACKET ORNAMENT
 266  U+0276D  ❭  MEDIUM RIGHT-POINTING ANGLE BRACKET ORNAMENT
stop missing characters
\stopbuffer

\typebuffer[example]

\startlines
\getbuffer[example]

{\ss\getbuffer[example]}
\stoplines

\tex{abra}\arg{...}
\type{kadabra} \type{~~~}

\stoptext
"""

What’s wrong?

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
___


[NTG-context] Font Fallbacks

2017-04-03 Thread Mathias Schickel
Dear ConTeXt users,

I have a question concerning font fallbacks in math fonts. I have not been able 
to find an option to specify optical sizes in fallbacks. I want to use Minion 
Math for the alphabetical symbols, and this font ships with single font files 
for each optical size. So I am searching for the right command to get for 
example the following behaviour:

Use the CambriaMath fonts for mathematical symbols and use Minion Math 
(Minion-Math-Regular.otf for standard size, Minion-Math-Caption.otf for indices 
and Minion-Math-Tiny for sub-indices) for alphabetical symbols.

Can anyone tell me which commands I have to use to achieve this?

So the general question is paraphrased as follows: Use some font as a general 
math font (here CambriaMath) and replace some symbols out of another fonts that 
ships with single files for each optical size.

One remark about that: Minion Math has supporting mkiv-files. So you can use 
this font (specifying all optical sizes) by writing \setupbodyfont[minion]. One 
could make use of that and maybe use a command like

\definefamilyfallback[MathFallback][family:minion][][force=yes].

As far as I know a command like that does not exist at present. Maybe it could 
be designed to take use of existing font definition files.

And I have some similar problem: I do not like the mathematical symbols of the 
STIX2 fonts that much (since they are mainly taken from STIX1) and let us 
suppose now that I want to use again CambriaMath instead for mathematical 
symbols. I was able to figure out the following commands that nearly achieve 
what I want to get:

\definefontfallback[MathFallback][file:STIX2Math.otf][lowercasescript,uppercasescript,lowercasefraktur,uppercasefraktur][force=yes]
%
\starttypescriptcollection[stix2own]
%
\starttypescript [\s!math][stix2own][\s!all]
\loadfontgoodies[cambria-math]
\definefontsynonym[\s!MathRoman] [Cambria-Math] 
[\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback},\s!goodies=cambria-math]
 \stoptypescript
%
\starttypescript [stix2own]
\definetypeface [\typescriptone] [\s!mm] [\s!math]  [stix2own] 
[\s!default]
\stoptypescript
%
\stoptypescriptcollection

This font can be used by the command \setupbodyfont[stix2own].

The only problem is that STIX2 has design sizes embedded in the file 
STIX2Math.otf that are used if I am using this file as whole for math, but that 
are not used any longer using the mechanism defined above. That means: If I use 
Cambria as Math font and replace the alphabetical symbols out of STIX2Math.otf 
the optical sizes for indices are not used any longer.

What can be done to solve this second problem?

One last question remains: I dislike the summation symbol of CambriaMath 
(because it is too large in my eyes) and this is why I want to replace it by 
the version of STIX2Math again (this symbols is indeed redesigned in STIX2Math 
and looks very nice in my eyes). So I could add a second font fallback that 
should be applied besides the one above. The unicode slot of the summation 
symbol is 0x2211in STIX2Math. So I could define

\definefontfallback[SummationFallback][file:STIX2Math.otf][0x2211][force=yes]

and pass it as a second fallback as follows (changing the following line in the 
example above):

\definefontsynonym[\s!MathRoman] [Cambria-Math] 
[\s!features={\s!math\mathsizesuffix},\s!designsize=\s!auto,\s!fallbacks={MathFallback,SummationFallback},\s!goodies=cambria-math]

The problem is that only one of those fallbacks is used if I pass two arguments 
for fallbacks. Of course this problem can be solved easily if I add the 
summation symbol to the list of replaced symbols in the first fallback 
definition. But if I want to use a summation symbol out of another font this 
trick does not work any longer.

Besides there is a second problem in replacing the summation symbol in the way 
described: Every time I am using $\sum$, ConTeXt uses the bigger symbol 
designed for displayed formulas and not the one designed for inline formulas. 
How can I solve this problem?

Thank you very much for your assistance! If running minimal examples are 
required I can of course provide them. But I hope someone understands the 
fallback mechanism better than I do and then the minimal examples written by me 
would be obsolete (besides the require some font definition files which makes 
them more of less a little complex). Besides because of Minion Math is 
commercial not everyone owns this font an thus is unable to run the minimal 
example.

Kind regards
Mathias

___
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://context.aanhet.net
archive  : 

[NTG-context] Font fallbacks

2008-08-29 Thread Wolfgang Schuster
Hi,

the \definefontfallback commands use only the last setting in a comma
seperated list.

In this example only characters from 0x0071 to 0x0081 are set in bolditalic.

\definefontfallback [whatever] [BoldItalic] [0x0041-0x0051,0x0071-0x0081]

\definefontsynonym[SerifPlus][Serif][fallbacks=whatever]

\definefont[MySerif][SerifPlus]

\starttext

\MySerif

\dostepwiserecurse{65}{255}{1}
{\char\recurselevel\hskip10pt plus 5pt\relax}

\stoptext

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
___


Re: [NTG-context] Font fallbacks

2008-08-29 Thread Hans Hagen
Wolfgang Schuster wrote:
 Hi,
 
 the \definefontfallback commands use only the last setting in a comma
 seperated list.

fixed (it needed a deep copy of tables)


-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
  | www.pragma-pod.nl
-
___
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
___