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: Utopia and Fourier fonts
Date: Mon, 29 Sep 2008 22:22:53 +0200	[thread overview]
Message-ID: <98B77528-8CEF-438E-965C-6F453B369336@gmail.com> (raw)
In-Reply-To: <d5fddde00809291135y15183cfbr936df97224fdb568@mail.gmail.com>


Am 29.09.2008 um 20:35 schrieb Mikael Persson:

> On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>>
>> Am 29.09.2008 um 11:31 schrieb Mikael Persson:
>>
>>> On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
>>> <schuster.wolfgang@googlemail.com> wrote:
>>>>
>>>> Am 28.09.2008 um 21:21 schrieb Aditya Mahajan:
>>>>
>>>>>>>> Some comments:
>>>>>>>> * As a mathematician I was a bit tired of the computer modern
>>>>>>>> fonts (I
>>>>>>>> really like them, but I see them to often), so I decided to go
>>>>>>>> with
>>>>>>>> the utopia/fourier fonts. This forced me to work with mkii,
>>>>>>>> since I
>>>>>>>> did not get these fonts to work with mkiv (This is still a
>>>>>>>> problem, I
>>>>>>>> am not sure how to go on with it for future documents).
>>>>>>>
>>>>>>> looks quite nice, i also like the font size
>>>>>>
>>>>>> Thanks. What about getting these fonts to work in mkiv? Must
>>>>>> there be
>>>>>> some change in the fonts? Some files in ConTeXt? (they were
>>>>>> perfectly
>>>>>> working in older mkii)
>>>>>
>>>>> Fourier and Uptopia should work with mkiv. I will check why they  
>>>>> are
>>>>> not
>>>>> working at present.
>>>>
>>>> Utopia use "encoding-filename" and MkIV needs the "filename" to  
>>>> load
>>>> the fonts.
>>>>
>>>> Here is a complete typescript for utopia (without fake slanted and
>>>> caps style).
>>>>
>>>> \starttypescript [serif] [utopia]
>>>>   \setups[font:fallback:serif]
>>>>   \definefontsynonym [Serif]           [Utopia-Regular]
>>>>   \definefontsynonym [SerifItalic]     [Utopia-Italic]
>>>>   \definefontsynonym [SerifBold]       [Utopia-Bold]
>>>>   \definefontsynonym [SerifBoldItalic] [Utopia-BoldItalic]
>>>> \stoptypescript
>>>>
>>>> \starttypescript [serif] [utopia]
>>>>   \definefontsynonym [Utopia-Regular]    [file:putr8a]
>>>> [features=default]
>>>>   \definefontsynonym [Utopia-Italic]     [file:putri8a]
>>>> [features=default]
>>>>   \definefontsynonym [Utopia-Bold]       [file:putb8a]
>>>> [features=default]
>>>>   \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]
>>>> [features=default]
>>>> \stoptypescript
>>>>
>>>> \starttypescript [utopia]
>>>>   \definetypeface [\typescriptone] [rm] [serif] [utopia] [default]
>>>> \stoptypescript
>>>>
>>>> \endinput
>>>>
>>>> Wolfgang
>>>
>>> Thank you Wolfgang, but this does not work for me with latest
>>> minimals. (I have downloaded utopia(+fourier) and they show up in
>>> mkii.) I put your lines in a file and add
>>> \setupbodyfont[utopia][ec/8r/...] %tried several and also without
>>> this last []
>>> \starttext
>>> test
>>> \stoptext
>>>
>>> LuaTeX just compiles and replaces these fonts by lm.
>>>
>>> luatools putr8a.pfb gives the resulting location of the pfb file  
>>> so it
>>> actually finds the font.
>>>
>>> Do I misuse it?
>>
>> Try my test file (I saved the typescript above in type-utopia.tex).
>>
>> \usetypescriptfile[type-utopia]
>>
>> \usetypescript[utopia]
>> \setupbodyfont[utopia]
>>
>> \starttext
>>
>> \tf ABC abc 123 \par
>> \it ABC abc 123 \par
>> \bf ABC abc 123 \par
>> \bi ABC abc 123 \par
>>
>> \stoptext
>>
>> Wolfgang
>
> Mojca did send me a list with the necessary files for fourier+utopia.
> I put them in
>
> http://www.math.chalmers.se/~mickep/fourierandutopia.zip
>
> if someone wants to test. I also attach a small (I guess noncomplete)
> typescript file type-myfourier.tex (the myfourier not to clash with
> something previously defined) and a file ftest.tex which indeed gives
> the fourier fonts, but with the error as in
> http://www.math.chalmers.se/~mickep/ftest.pdf mentioned in a previous
> mail.
>
> I guess this is not the correct way to write typescripts for these
> fonts in mkiv, but I dont know how to :(
>
> Best regards, Mikael
>
> PS: Thank you Mojca for giving this list of files and also explain
> which of the otf/ttf/type1 files that needs typescripts.

Math fonts are not available in 'ec' encoding, you have to use 'default'
and why do you use the tfm files for Utopia, the afm files are enough.

Here is my version:

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

\starttypescript [serif] [utopia]
     \definefontsynonym [Utopia-Regular]    [file:putr8a]   
[features=default]
     \definefontsynonym [Utopia-Italic]     [file:putri8a]  
[features=default]
     \definefontsynonym [Utopia-Bold]       [file:putb8a]   
[features=default]
     \definefontsynonym [Utopia-BoldItalic] [file:putbi8a]  
[features=default]
\stoptypescript

\starttypescript [math] [fourier] [name]
     \definefontsynonym [MathRoman]     [Utopia-Regular]
     \definefontsynonym [MathItalic]    [futmii]
     \definefontsynonym [MathSymbol]    [futsy]
     \definefontsynonym [MathExtension] [fourier-mex]
     \loadmapfile[fourier.map]
\stoptypescript

\starttypescript [fourier,utopia]
     \definetypeface [\typescriptone] [rm] [serif] [utopia]  [default]
     \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]  
[rscale=1.07]
     \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]  
[rscale=1.07]
     \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]  
[encoding=default]
     \usemathcollection[fou]
     \quittypescriptscanning
\stoptypescript

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-09-29 20:22 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-27 16:35 Experience on writing a thesis with MKIV Aditya Mahajan
2008-09-28 13:59 ` Hans Hagen
2008-09-28 15:45 ` Mikael Persson
2008-09-28 18:23   ` Hans Hagen
2008-09-28 19:06     ` Mikael Persson
2008-09-28 19:21       ` Aditya Mahajan
2008-09-28 19:34         ` Utopia and Fourier fonts (was: Experience on writing a thesis with MKIV) Wolfgang Schuster
2008-09-29  9:31           ` Mikael Persson
2008-09-29  9:56             ` Utopia and Fourier fonts Wolfgang Schuster
2008-09-29 13:34               ` Mikael Persson
2008-09-29 13:49                 ` Mojca Miklavec
2008-09-29 18:35               ` Mikael Persson
2008-09-29 20:22                 ` Wolfgang Schuster [this message]
2008-09-30  6:43                   ` Mikael Persson
2008-10-01 15:43                     ` Mikael Persson
2008-09-29  9:26     ` Experience on writing a thesis with MKIV Mikael Persson
2008-09-28 17:34 ` Mohamed Bana
2008-09-28 18:16   ` Listings (was: Experience on writing a thesis with MKIV) Wolfgang Schuster
2008-09-28 20:42     ` Listings Mohamed Bana
2008-09-28 21:23       ` Listings Wolfgang Schuster
2008-09-28 22:04         ` Listings Wolfgang Schuster
2008-09-30 16:37     ` Listings (was: Experience on writing a thesis with MKIV) Chen Shen
2008-09-30 17:15       ` Wolfgang Schuster
2008-10-01  3:44         ` Chen Shen
2008-10-02 17:38           ` Chen Shen
2008-09-30 20:35       ` Listings Hans Hagen
2008-10-02 21:27     ` Listings Mohamed Bana
2008-10-03  5:49       ` Listings Peter Münster
2008-10-04  1:11         ` Listings Mojca Miklavec
2008-12-07  2:28 ` Experience on writing a thesis with MKIV Mohamed Bana
2008-12-07  2:50   ` Aditya Mahajan
2008-12-08 23:19     ` Mohamed Bana
2008-12-09  0:40       ` Aditya Mahajan
2008-12-09  1:22         ` Sorting bug in context-alpha (was: Experience on writing a thesis with MKIV) Aditya Mahajan
2008-12-09  2:59         ` Experience on writing a thesis with MKIV Mohamed Bana
2008-12-09  3:26           ` Aditya Mahajan
2008-12-09 18:17             ` Mohamed Bana
2008-12-09 19:36               ` Aditya Mahajan
2008-12-09 21:23                 ` Taco Hoekwater
2008-12-09 21:49                   ` Aditya Mahajan
2008-12-10  9:24                     ` Taco Hoekwater
2008-12-11  2:20                     ` Mohamed Bana
2008-12-11  3:17                       ` Aditya Mahajan
2008-12-15  3:52                         ` Mohamed Bana
2008-12-09 14:18           ` Mojca Miklavec

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=98B77528-8CEF-438E-965C-6F453B369336@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).