ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unnecessary loading of lm-mono
@ 2021-05-26 19:14 Rik Kabel
  2021-05-26 20:04 ` Henri Menke
  0 siblings, 1 reply; 2+ messages in thread
From: Rik Kabel @ 2021-05-26 19:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 613 bytes --]

For a few revisions now, I have seen the following as the very first 
line of log files. It is not coming from my document. Is anybody else 
seeing it?

    fonts           > beware: no fonts are loaded yet, using 'lm mono'
    in box

Here is an example document that generates it:

    \setupbodyfont[libertinus,10pt]
    \starttext
    Hello world!
    \stoptext

It seems harmless, but it does result in loading an un-needed font.

    mkiv lua stats  > loaded fonts: 4 files: lmmono10-regular.otf,
    libertinusmath-bold.otf, libertinusmath-regular.otf,
    libertinusserif-regular.otf

-- 
Rik


[-- Attachment #1.2: Type: text/html, Size: 1120 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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] 2+ messages in thread

* Re: Unnecessary loading of lm-mono
  2021-05-26 19:14 Unnecessary loading of lm-mono Rik Kabel
@ 2021-05-26 20:04 ` Henri Menke
  0 siblings, 0 replies; 2+ messages in thread
From: Henri Menke @ 2021-05-26 20:04 UTC (permalink / raw)
  To: ntg-context

On 26/05/21, 15:14, Rik Kabel wrote:
> For a few revisions now, I have seen the following as the very first line of
> log files. It is not coming from my document. Is anybody else seeing it?
> 
>    fonts           > beware: no fonts are loaded yet, using 'lm mono'
>    in box
> 
> Here is an example document that generates it:
> 
>    \setupbodyfont[libertinus,10pt]
>    \starttext
>    Hello world!
>    \stoptext
> 
> It seems harmless, but it does result in loading an un-needed font.
> 
>    mkiv lua stats  > loaded fonts: 4 files: lmmono10-regular.otf,
>    libertinusmath-bold.otf, libertinusmath-regular.otf,
>    libertinusserif-regular.otf

Looks like something is accidentally being typeset (maybe stored in a
box) before \starttext. You can reproduce this in MKIV with the
following

    \writestatus{debug}{Before}
    \setbox\scratchbox=\hbox{oeps}
    \writestatus{debug}{After}
    \starttext
    Hello world!
    \stoptext

and in the log you will find

    debug           > Before
    fonts           > beware: no fonts are loaded yet, using 'lm mono' in box
    debug           > After

so it is definitely due to typesetting.

Cheers, Henri

> 
> -- 
> Rik
> 

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

___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2021-05-26 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 19:14 Unnecessary loading of lm-mono Rik Kabel
2021-05-26 20:04 ` Henri Menke

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