ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Latest beta, simpleslides, and font loading
Date: Thu, 3 Feb 2011 08:49:52 +0100	[thread overview]
Message-ID: <EAABE080-06C3-414B-B8DD-24519E14A52A@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1102030157260.333@ybpnyubfg.ybpnyqbznva>


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
___________________________________________________________________________________


  reply	other threads:[~2011-02-03  7:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-03  7:16 Aditya Mahajan
2011-02-03  7:49 ` Wolfgang Schuster [this message]
2011-02-03  9:07   ` Hans Hagen
2011-02-03 11:37     ` Wolfgang Schuster
2011-02-03 12:59     ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=EAABE080-06C3-414B-B8DD-24519E14A52A@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).