* definefallbackfamily and utfchar, something changed?
@ 2017-05-10 9:33 Mikael P. Sundqvist
2017-05-10 12:36 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Mikael P. Sundqvist @ 2017-05-10 9:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]
Hi,
the Lucida font does not have all variants of \heartsuit,
\varheartsuit and so on (see for example
http://mirror.unl.edu/ctan/macros/latex/contrib/unicode-math/unimath-symbols.pdf
for their unicode slots).
For this reason I borrow these symbols from Xits. The code below used
to work, but not anymore (I updated to latest standalone today, not
sure when it stopped work). I don't get Xits symbols at all, but only
a filled diamondsuit from vardiamondsuit. That one belongs to the
Lucida font.
Any ideas on how to fix this issue?
Best regards, Mikael
PS: I'm sorry for using a commercial font in an example. If requested,
I gladly change that.
%% Test file
\definefallbackfamily [lucidaopentype][mm][Xits
Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]
\definefontfamily[lucidaopentype][rm][Lucida Bright OT]
\definefontfamily[lucidaopentype][ss][Lucida Sans OT]
\definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
\definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]
\setupbodyfont[lucidaopentype]
\def\diamondsuit{\utfchar{"02662}}
\def\varspadesuit{\utfchar{"02664}}
\def\varheartsuit{\utfchar{"02665}}
\def\vardiamondsuit{\utfchar{"02666}}
\def\varclubsuit{\utfchar{"02667}}
\starttext
Test: $\vardiamondsuit$ and $\diamondsuit$
\stoptext
[-- Attachment #2: ctx-example17.pdf --]
[-- Type: application/pdf, Size: 6297 bytes --]
[-- Attachment #3: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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 : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: definefallbackfamily and utfchar, something changed?
2017-05-10 9:33 definefallbackfamily and utfchar, something changed? Mikael P. Sundqvist
@ 2017-05-10 12:36 ` Hans Hagen
2017-05-13 17:48 ` Mikael P. Sundqvist
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2017-05-10 12:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
Wolfgang and I are looking into it ... the issue was introduced when
support for designsizes for fallbacks was introduced
Hans
On 5/10/2017 11:33 AM, Mikael P. Sundqvist wrote:
> Hi,
>
> the Lucida font does not have all variants of \heartsuit,
> \varheartsuit and so on (see for example
> http://mirror.unl.edu/ctan/macros/latex/contrib/unicode-math/unimath-symbols.pdf
> for their unicode slots).
>
> For this reason I borrow these symbols from Xits. The code below used
> to work, but not anymore (I updated to latest standalone today, not
> sure when it stopped work). I don't get Xits symbols at all, but only
> a filled diamondsuit from vardiamondsuit. That one belongs to the
> Lucida font.
>
> Any ideas on how to fix this issue?
>
> Best regards, Mikael
>
> PS: I'm sorry for using a commercial font in an example. If requested,
> I gladly change that.
>
> %% Test file
>
> \definefallbackfamily [lucidaopentype][mm][Xits
> Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]
>
> \definefontfamily[lucidaopentype][rm][Lucida Bright OT]
> \definefontfamily[lucidaopentype][ss][Lucida Sans OT]
> \definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
> \definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]
>
> \setupbodyfont[lucidaopentype]
>
> \def\diamondsuit{\utfchar{"02662}}
> \def\varspadesuit{\utfchar{"02664}}
> \def\varheartsuit{\utfchar{"02665}}
> \def\vardiamondsuit{\utfchar{"02666}}
> \def\varclubsuit{\utfchar{"02667}}
>
>
> \starttext
>
> Test: $\vardiamondsuit$ and $\diamondsuit$
>
> \stoptext
>
>
>
> ___________________________________________________________________________________
> 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 : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: definefallbackfamily and utfchar, something changed?
2017-05-10 12:36 ` Hans Hagen
@ 2017-05-13 17:48 ` Mikael P. Sundqvist
0 siblings, 0 replies; 3+ messages in thread
From: Mikael P. Sundqvist @ 2017-05-13 17:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 3817 bytes --]
On Wed, May 10, 2017 at 2:36 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Wolfgang and I are looking into it ... the issue was introduced when support
> for designsizes for fallbacks was introduced
>
> Hans
>
>
> On 5/10/2017 11:33 AM, Mikael P. Sundqvist wrote:
>>
>> Hi,
>>
>> the Lucida font does not have all variants of \heartsuit,
>> \varheartsuit and so on (see for example
>>
>> http://mirror.unl.edu/ctan/macros/latex/contrib/unicode-math/unimath-symbols.pdf
>> for their unicode slots).
>>
>> For this reason I borrow these symbols from Xits. The code below used
>> to work, but not anymore (I updated to latest standalone today, not
>> sure when it stopped work). I don't get Xits symbols at all, but only
>> a filled diamondsuit from vardiamondsuit. That one belongs to the
>> Lucida font.
>>
>> Any ideas on how to fix this issue?
>>
>> Best regards, Mikael
>>
>> PS: I'm sorry for using a commercial font in an example. If requested,
>> I gladly change that.
>>
>> %% Test file
>>
>> \definefallbackfamily [lucidaopentype][mm][Xits
>> Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]
>>
>> \definefontfamily[lucidaopentype][rm][Lucida Bright OT]
>> \definefontfamily[lucidaopentype][ss][Lucida Sans OT]
>> \definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
>> \definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]
>>
>> \setupbodyfont[lucidaopentype]
>>
>> \def\diamondsuit{\utfchar{"02662}}
>> \def\varspadesuit{\utfchar{"02664}}
>> \def\varheartsuit{\utfchar{"02665}}
>> \def\vardiamondsuit{\utfchar{"02666}}
>> \def\varclubsuit{\utfchar{"02667}}
>>
>>
>> \starttext
>>
>> Test: $\vardiamondsuit$ and $\diamondsuit$
>>
>> \stoptext
>>
>>
>>
>>
>> ___________________________________________________________________________________
>> 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 : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>>
>> ___________________________________________________________________________________
>>
>
>
> --
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
Hi again,
now the spadesuits, heartsuits and so on work as expected, thanks! But the line
\definefallbackfamily [lucidaopentype][mm][Xits
Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]
also changes where the primes come from. The example below outputs
primes from Xits (pdf attached).
/Mikael
\definefallbackfamily [lucidaopentype][mm][Xits
Math][range={2660,2661,2662,2663,2664,2665,2666,2667}]
\definefontfamily[lucidaopentype][rm][Lucida Bright OT]
\definefontfamily[lucidaopentype][ss][Lucida Sans OT]
\definefontfamily[lucidaopentype][tt][Lucida Sans Typewriter OT]
\definefontfamily[lucidaopentype][mm][Lucida Bright Math OT]
\setupbodyfont[lucidaopentype,10pt]
\starttext
Compare $u_p''$ and $u''_p$ with $u''$
\stoptext
[-- Attachment #2: ctx-listexample30.pdf --]
[-- Type: application/pdf, Size: 9506 bytes --]
[-- Attachment #3: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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 : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-13 17:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 9:33 definefallbackfamily and utfchar, something changed? Mikael P. Sundqvist
2017-05-10 12:36 ` Hans Hagen
2017-05-13 17:48 ` Mikael P. Sundqvist
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).