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: how to convert font size to pt number ?
Date: Sun, 13 Jul 2008 14:00:35 +0200	[thread overview]
Message-ID: <364192F0-DDBD-4326-8974-4B5787A44F1D@gmail.com> (raw)
In-Reply-To: <326847810807130416yba5e06ey4ce437d6ee022eea@mail.gmail.com>


Am 13.07.2008 um 13:16 schrieb Alan Stone:

> (1) \setupbodyfont[somebodyfont,12pt]
> \definefont[chapterfont][somefont sa 1.728]
> \setuphead[chapter][style=chapterfont]
>
> gives a compile error at \chapter{chapter title} :
>
> ! Font \**chapterfont**:=somefont at 20.736pt not loadable: metric  
> data not found or bad

somefont is only a placeholder for a real font name or a style like  
Serif, Sans ...

> However
>
> \setuphead[chapter][style=\tfc\somefont] works OK.

\setuphead[chapter][style=\tfc\somefont]

\starttext

\chapter{Chapter}

\stoptext

This gives me a error message, give us working samples.

> \setupbodyfont[somefont,12pt] also work OK, while

How should we know, it's hard to give you an answer with just one line  
of code.

> \setupbodyfont[chapterfont,12pt] defaults to LM font
>
> Uh ?

You have no typeface with the name 'chapterfont'.

> (2) fc-list output extract
>
> Times New  
> Roman:style 
> = 
> Regular 
> ,Normal 
> ,obyčejné 
> ,Standard 
> ,Κανονικά 
> ,Normaali 
> ,Normál 
> ,Normale 
> ,Standaard 
> ,Normalny,Обычный,Normálne,Navadno,thường,Arrunta
> Times New  
> Roman:style 
> = 
> Italic 
> ,cursiva 
> ,kurzíva 
> ,kursiv 
> ,Πλάγια 
> ,Kursivoitu 
> ,Italique 
> ,Dőlt 
> ,Corsivo 
> ,Cursief 
> ,kursywa,Itálico,Курсив,İtalik,Poševno,nghiêng,Etzana
> Times New  
> Roman:style 
> = 
> Bold 
> ,Negreta 
> ,tučné 
> ,fed 
> ,Fett 
> ,Έντονα 
> ,Negrita 
> ,Lihavoitu 
> ,Gras 
> ,Félkövér 
> ,Grassetto 
> ,Vet 
> ,Halvfet 
> ,Pogrubiona 
> ,Negrito,Полужирный,Fet,Kalın,Krepko,đậm,Lodia
> Times New Roman:style=Bold Italic,Negreta cursiva,tučné  
> kurzíva,fed kursiv,Fett Kursiv,Έντονα Πλάγια,Negrita  
> Cursiva,Lihavoitu Kursivoi,Gras Italique,Félkövér dőlt,Grassetto  
> Corsivo,Vet Cursief,Halvfet Kursiv,Pogrubiona kursywa,Negrito  
> Itálico,Полужирный Курсив,Tučná kurzíva,Fet  
> Kursiv,Kalın İtalik,Krepko poševno,nghiêng đậm,Lodi etzana
>
> With the following typescript
>
>     \starttypescript[serif][timesnewroman]
>         % --- MS TrueType Core Font ---
>         \definefontsynonym[Dummy][name:Times New Roman] 
> [features=default]
>         \definefontsynonym[DummyBold][name:Times New Roman Bold] 
> [features=default]
>         \definefontsynonym[DummyItalic][name:Times New Roman Italic] 
> [features=default]
>         \definefontsynonym[DummyBoldItalic][name:Times New Roman  
> Bold Italic][features=default]
>     \stoptypescript

\starttypescript [serif] [timesnewroman]
   \definefontsynonym [TimesNewRoman-Regular]    [name:Times New  
Roman]            [features=default]
   \definefontsynonym [TimesNewRoman-Italic]     [name:Times New Roman  
Italic]     [features=default]
   \definefontsynonym [TimesNewRoman-Bold]       [name:Times New Roman  
Bold]       [features=default]
   \definefontsynonym [TimesNewRoman-BoldItalic] [name:Times New Roman  
Bold Italic] [features=default]
\stoptypescript

>     \starttypescript[serif][timesnewroman][name]
>         \definefontsynonym[Serif][Dummy][features=default]
>         \definefontsynonym[SerifBold][DummyBold][features=default]
>         \definefontsynonym[SerifItalic][DummyItalic][features=default]
>         \definefontsynonym[SerifBoldItalic][DummyBoldItalic] 
> [features=default]
>         \definefontsynonym[SerifSlanted][DummyItalic] 
> [features=default]
>         \definefontsynonym[SerifIBoldSlanted][DummyBoldItalic] 
> [features=default]
>         \definefontsynonym[SerifCaps][Dummy][features=default]
>     \stoptypescript

\starttypescript [serif] [timesnewroman]
   \setups[font:fallback:serif]
   \definefontsynonym [Serif]           [TimesNewRoman-Regular]
   \definefontsynonym [SerifItalic]     [TimesNewRoman-Italic]
   \definefontsynonym [SerifBold]       [TimesNewRoman-Bold]
   \definefontsynonym [SerifBoldItalic] [TimesNewRoman-BoldItalic]
\stoptypescript

>     \definetypeface[myBodyFont][rm][serif][timesnewroman][default]

\starttypescript [timesnewroman]
   \definetypeface [timesnewroman] [rm] [serif] [timesnewroman]  
[default]
\stoptypescript

\usetypescript[timesnewroman]
\setupbodyfont[timesnewroman]

\starttext

text \bf text \it text \bi text

\stoptext

> \bf displays in bold italic (??) so something is wrong/missing.  
> Seems to be something with the style=... stuff. Fruitlessly searched  
> the wiki and mailing list archive.


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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2008-07-13 12:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-12 19:48 Alan Stone
2008-07-12 20:05 ` Aditya Mahajan
2008-07-12 21:06   ` Alan Stone
2008-07-12 21:20     ` Henning Hraban Ramm
2008-07-12 22:05       ` Wolfgang Schuster
2008-07-12 22:35     ` Aditya Mahajan
2008-07-13  3:52       ` Aditya Mahajan
2008-07-13  7:56         ` Alan Stone
2008-07-13 11:16           ` Alan Stone
2008-07-13 12:00             ` Wolfgang Schuster [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=364192F0-DDBD-4326-8974-4B5787A44F1D@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).