ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Stone <software.list.1es9s@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: strange fontswitching error
Date: Fri, 20 Feb 2009 15:42:38 +0100	[thread overview]
Message-ID: <326847810902200642k79f7b152o4f9db5a27bd9d17a@mail.gmail.com> (raw)
In-Reply-To: <499DD0C0.1080808@wxs.nl>


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

On Thu, Feb 19, 2009 at 10:36 PM, Hans Hagen <pragma@wxs.nl> wrote:

> Alan Stone wrote:
>
>> Hi,
>>
>> BF = body font
>> HF = head font
>>
>> A = arial
>> T = times new roman
>> V = verdana
>>
>> OT = 12 = 12pt
>> OF = 14 = 14pt
>>
>> See comments in fontswitch.tex
>>
>> In attachment...
>>
>> - fontswitch.tex: minimal example
>> - tps_arial.tex, tps_timesnewroman.tex, tps_verdana.tex: typescripts
>> - fontswitch.log for BFT14 + HFV14 -> font error ( same with BFA14 + HFV14
>> )
>> - fontswitch.pdf for BFT14 + HFV14 : chapter head is blank ( same with
>> BFA14
>> + HFV14 )
>>
>> After testing different font(switching) combinations...
>>
>> - BFA14 or BFT14 + HFVx with x not 14pt compile and print the generated
>> pdf
>> fine
>> - BFV14 + HFV14 compiles and prints the generated pdf fine
>> - BFA12, BFT12, BFV12 + HFV14 or HFV12 compile and print the generated pdf
>> fine
>>
>> Qué passa ?
>>
>
> you use undefined typefaces; in mkii we default to an empty fontclass which
> in turn will trigger default fallbacks (i.e. the main bodyfont has no
> fontclass) while in mkiv we default to the 'modern' fontclass; i'm still not
> sure if it will be kept this way but if so, i'll make a fallback again (this
> time to a default fontclass)


At first I didn't understand a thing about your answer, however after
digging a bit further and finding out that when replacing 14pt with 14.4 pt
( re: \showbodyfontenvironment table ) it works again. Guess I now
understand what "fallbacks"means. :O)

For future reference...
http://en.wikipedia.org/wiki/Typeface
http://en.wikipedia.org/wiki/Fallback_font

Alan



> % \usetypescriptfile[tps_arial]         \usetypescript[arial]
> \usetypescriptfile[tps_timesnewroman] \usetypescript[timesnewroman]
> \usetypescriptfile[tps_verdana]       \usetypescript[verdana]
>
> \def\myFontSizeOT{12pt}
> \def\myFontSizeOF{19pt}
>
> % \setupbodyfont[arial,        \myFontSizeOT]
> % \setupbodyfont[timesnewroman,\myFontSizeOT]
> \setupbodyfont[verdana,      \myFontSizeOT]
>
> % \setupbodyfont[arial,        \myFontSizeOF]
> % \setupbodyfont[timesnewroman,\myFontSizeOF]
> % \setupbodyfont[verdana,      \myFontSizeOF]
>
> % \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOT]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOT]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOT]}]
>
> \setuphead[chapter][style={\switchtobodyfont[arial,\myFontSizeOF]}]
> %
> \setuphead[chapter][style={\switchtobodyfont[timesnewroman,\myFontSizeOF]}]
> % \setuphead[chapter][style={\switchtobodyfont[verdana,\myFontSizeOF]}]
>
> \starttext
>
> \chapter{First Chapter}
>
> \input knuth
>

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

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2009-02-20 14:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-19 13:27 Alan Stone
2009-02-19 21:36 ` Hans Hagen
2009-02-20  9:24   ` Alan Stone
2009-02-22 18:46     ` Hans Hagen
2009-02-20 14:42   ` Alan Stone [this message]

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=326847810902200642k79f7b152o4f9db5a27bd9d17a@mail.gmail.com \
    --to=software.list.1es9s@gmail.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).