ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* something’s wrong with \definefontfallback
@ 2022-10-30 15:43 Henning Hraban Ramm via ntg-context
  2022-10-30 15:54 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-10-30 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

This used to work:

\definefontfallback[seguiFB]
   [file:seguisym.ttf]
   [0x00000-0xFFFFF]
   [check=yes,force=no]

\definetypeface [contextstart] [ss] [sans]  [segoe] 
[default][fallbacks=seguiFB]

(Intention is to take all missing characters from this symbol font.)


But with current LMTX, I get:



tex error       > tex error on line 48 in file env_contextstart.tex:

lua error:

	registered function call [1145]: 
...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:2339: 
attempt to perform arithmetic on a nil value (field 'depth')
stack traceback:
	...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:2339: in 
local 'action'
	...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:3166: in 
upvalue 'applytweaks'
	...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:3200: in 
upvalue 'mathematics_tweakaftercopyingfont'
	[string "local mathematics_tweakaftercopyingfont = mat..."]:5: in local 
'runner'
	...-14/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:504: in 
field 'aftercopyingcharacters'
	...-14/tex/texmf-context/tex/context/base/mkxl/font-con.lmt:859: in 
field 'scale'
	...-14/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:672: in 
function <...-14/tex/texmf-context/tex/context/base/mkxl/font-otl.lmt:664>
	(...tail calls...)
	...-14/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:378: in 
function <...-14/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:366>
	(...tail calls...)
	...-14/tex/texmf-context/tex/context/base/mkxl/font-def.lmt:484: in 
field 'read'
	...-14/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1371: in 
function <...-14/tex/texmf-context/tex/context/base/mkxl/font-ctx.lmt:1228>
	(...tail calls...)	

43     \usetypescriptfile[contextstart]
44     \usebodyfont[modern]
45     \usebodyfont[cambria]
46     \usebodyfont[segoe]
47
48 >>  \setupbodyfont[contextstart,10pt]


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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  something’s wrong with \definefontfallback
  2022-10-30 15:43 something’s wrong with \definefontfallback Henning Hraban Ramm via ntg-context
@ 2022-10-30 15:54 ` Hans Hagen via ntg-context
  2022-10-30 19:07   ` Henning Hraban Ramm via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-10-30 15:54 UTC (permalink / raw)
  To: Henning Hraban Ramm via ntg-context; +Cc: Hans Hagen

On 10/30/2022 4:43 PM, Henning Hraban Ramm via ntg-context wrote:
> This used to work:
> 
> \definefontfallback[seguiFB]
>    [file:seguisym.ttf]
>    [0x00000-0xFFFFF]
>    [check=yes,force=no]
> 
> \definetypeface [contextstart] [ss] [sans]  [segoe] 
> [default][fallbacks=seguiFB]
> 
> (Intention is to take all missing characters from this symbol font.)
> 
> 
> But with current LMTX, I get:
> 
> 
> 
> tex error       > tex error on line 48 in file env_contextstart.tex:
> 
> lua error:
> 
>      registered function call [1145]: 
> ...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:2339: 
> attempt to perform arithmetic on a nil value (field 'depth')
Your example is too minimal so i can't test it. Do you also set those 
fallbacks on a math font (as the error has to do with math fallbacks).

Btw, 0x00000-0xFFFFF is a bit over the top,

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:  something’s wrong with \definefontfallback
  2022-10-30 15:54 ` Hans Hagen via ntg-context
@ 2022-10-30 19:07   ` Henning Hraban Ramm via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-10-30 19:07 UTC (permalink / raw)
  To: ntg-context; +Cc: Henning Hraban Ramm

[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]

Am 30.10.22 um 16:54 schrieb Hans Hagen via ntg-context:
> On 10/30/2022 4:43 PM, Henning Hraban Ramm via ntg-context wrote:
>> This used to work:
>>
>> \definefontfallback[seguiFB]
>>    [file:seguisym.ttf]
>>    [0x00000-0xFFFFF]
>>    [check=yes,force=no]
>>
>> \definetypeface [contextstart] [ss] [sans]  [segoe] 
>> [default][fallbacks=seguiFB]
>>
>> (Intention is to take all missing characters from this symbol font.)
>>
>>
>> But with current LMTX, I get:
>>
>>
>>
>> tex error       > tex error on line 48 in file env_contextstart.tex:
>>
>> lua error:
>>
>>      registered function call [1145]: 
>> ...-14/tex/texmf-context/tex/context/base/mkxl/math-act.lmt:2339: 
>> attempt to perform arithmetic on a nil value (field 'depth')
> Your example is too minimal so i can't test it. Do you also set those 
> fallbacks on a math font (as the error has to do with math fallbacks).

Ok, find attached a quite minimal example.

Yes, I had the fallback activated for math (since some enumeration 
symbols were missing), but I get an error also without math.

> Btw, 0x00000-0xFFFFF is a bit over the top,

Well, if I want to replace all missing characters without thinking too 
much which that might be?

Hraban

[-- Attachment #2: fontfallbacktest.tex --]
[-- Type: application/x-tex, Size: 2038 bytes --]

[-- Attachment #3: Type: text/plain, Size: 496 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-30 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-30 15:43 something’s wrong with \definefontfallback Henning Hraban Ramm via ntg-context
2022-10-30 15:54 ` Hans Hagen via ntg-context
2022-10-30 19:07   ` Henning Hraban Ramm via ntg-context

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).