* Latest beta, simpleslides, and font loading
@ 2011-02-03 7:16 Aditya Mahajan
2011-02-03 7:49 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2011-02-03 7:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
In the latest beta if I use the simplefonts module, the font database is
regenerated at each run! For example, this file
For example with this file:
\usemodule [simplefonts][size=10pt]
\setmainfont[Cambria]
\setmathfont[Cambria]
\starttext
\input knuth
\stoptext
the font database is regenerated at each run. If I replace the
simplefonts setup with
\setupbodyfont[cambria,10pt]
the database is not regenerated. Any idea what is going wrong?
(In my actual document, I am using system fonts, I would like to use
simpleslides module rather than write my own typescript).
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Latest beta, simpleslides, and font loading
2011-02-03 7:16 Latest beta, simpleslides, and font loading Aditya Mahajan
@ 2011-02-03 7:49 ` Wolfgang Schuster
2011-02-03 9:07 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2011-02-03 7:49 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 03.02.2011 um 08:16 schrieb Aditya Mahajan:
> In the latest beta if I use the simplefonts module, the font database is regenerated at each run! For example, this file
>
> For example with this file:
>
> \usemodule [simplefonts][size=10pt]
> \setmainfont[Cambria]
> \setmathfont[Cambria]
>
> \starttext
> \input knuth
> \stoptext
>
> the font database is regenerated at each run. If I replace the simplefonts setup with
>
> \setupbodyfont[cambria,10pt]
>
> the database is not regenerated. Any idea what is going wrong?
Here is a minimal example:
\starttext
\doiffontpresentelse{cambria}{yes}{no}
\doiffontpresentelse{unknown}{yes}{no}
\stoptext
Simplefonts tries a lot of name combinations (e.g. cambriaregular) with
the \doiffontpresentelse command to look if a font exists to find all
styles (regular, italic etc.) and now when when a entry in the database
with this name does not exist (second test above for 'unknown') context
regenerates the database.
> (In my actual document, I am using system fonts, I would like to use simpleslides module rather than write my own typescript).
Is this a option for you:
\definetypeface[mainface][rm][specserif][DejaVu Serif][default]
\definetypeface[mainface][ss][specsans] [DejaVu Sans] [default]
\setupbodyfont[mainface]
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Latest beta, simpleslides, and font loading
2011-02-03 7:49 ` Wolfgang Schuster
@ 2011-02-03 9:07 ` Hans Hagen
2011-02-03 11:37 ` Wolfgang Schuster
2011-02-03 12:59 ` Aditya Mahajan
0 siblings, 2 replies; 5+ messages in thread
From: Hans Hagen @ 2011-02-03 9:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 3-2-2011 8:49, Wolfgang Schuster wrote:
> Here is a minimal example:
>
> \starttext
> \doiffontpresentelse{cambria}{yes}{no}
> \doiffontpresentelse{unknown}{yes}{no}
> \stoptext
This is controlled by a directive. I will make that default, but because
users can configure it in their configuration file, maybe you should
force in in simplefonts:
\enabledirectives[fonts.autoreload]
That way you will only get a new scan when the mtxrun --generate has
happened.
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Latest beta, simpleslides, and font loading
2011-02-03 9:07 ` Hans Hagen
@ 2011-02-03 11:37 ` Wolfgang Schuster
2011-02-03 12:59 ` Aditya Mahajan
1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2011-02-03 11:37 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
Am 03.02.2011 um 10:07 schrieb Hans Hagen:
> On 3-2-2011 8:49, Wolfgang Schuster wrote:
>
>> Here is a minimal example:
>>
>> \starttext
>> \doiffontpresentelse{cambria}{yes}{no}
>> \doiffontpresentelse{unknown}{yes}{no}
>> \stoptext
>
> This is controlled by a directive. I will make that default, but because users can configure it in their configuration file, maybe you should force in in simplefonts:
>
> \enabledirectives[fonts.autoreload]
>
> That way you will only get a new scan when the mtxrun --generate has happened.
Done.
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Latest beta, simpleslides, and font loading
2011-02-03 9:07 ` Hans Hagen
2011-02-03 11:37 ` Wolfgang Schuster
@ 2011-02-03 12:59 ` Aditya Mahajan
1 sibling, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2011-02-03 12:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, 3 Feb 2011, Hans Hagen wrote:
> On 3-2-2011 8:49, Wolfgang Schuster wrote:
>
>> Here is a minimal example:
>>
>> \starttext
>> \doiffontpresentelse{cambria}{yes}{no}
>> \doiffontpresentelse{unknown}{yes}{no}
>> \stoptext
>
> This is controlled by a directive. I will make that default, but because
> users can configure it in their configuration file, maybe you should force in
> in simplefonts:
>
> \enabledirectives[fonts.autoreload]
>
> That way you will only get a new scan when the mtxrun --generate has
> happened.
Thanks. That works perfectly.
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-03 12:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-03 7:16 Latest beta, simpleslides, and font loading Aditya Mahajan
2011-02-03 7:49 ` Wolfgang Schuster
2011-02-03 9:07 ` Hans Hagen
2011-02-03 11:37 ` Wolfgang Schuster
2011-02-03 12:59 ` Aditya Mahajan
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).