Re: [NTG-context] Utopia and Fourier fonts

2008-10-01 Thread Mikael Persson
On Tue, Sep 30, 2008 at 8:43 AM, Mikael Persson [EMAIL PROTECTED] wrote:
 On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 20:35 schrieb Mikael Persson:

 On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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]
 

Re: [NTG-context] Utopia and Fourier fonts

2008-09-30 Thread Mikael Persson
On Mon, Sep 29, 2008 at 10:22 PM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 20:35 schrieb Mikael Persson:

 On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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] 

Re: [NTG-context] Utopia and Fourier fonts (was: Experience on writing a thesis with MKIV)

2008-09-29 Thread Mikael Persson
On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
[EMAIL PROTECTED] 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?

Mikael


 ___
 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
 ___

___
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
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Wolfgang Schuster

Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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

___
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
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mojca Miklavec
On Mon, Sep 29, 2008 at 3:34 PM, Mikael Persson wrote:
 On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster wrote:

 I'm very confused. I guess it means it is looking for some tfm files.
 Some questions:

 1) Do one still (with mkiv) need tfm files?

Yes and no. Type1 fonts don't carry enough information about the fonts
themselves.
Hans sometimes uses afm files instead of tfm, but probably not for math.

 1b) Is there a difference with the need of tfm files for
 opentype/type1/ttf fonts?

OpenType and TrueType fonts don't need tfm files, but for math you
still need them.

Mojca
___
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
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mikael Persson
On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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

I'm sorry, but I get this error:
%%%
define font | font with name putr8a is not found
define font | unknown font putr8a, loading aborted
! Font \*utopia12ptrmtfrm*:=file:putr8a*features=default, at 12pt not
loadable: metric data not found or bad.
to be read again
   \relax
\definefontglobal ...dcsname \lastfontname \relax
  \expandafter \let \expanda...
\xxdododefinefont ...tspec {#4}\newfontidentifier
  \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
  \tryingfontfalse \fi
inserted text ...yle \fontalternative \fontsize
  \fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
  \relax \fi \iftryingfont \...
...
l.4 \setupbodyfont[utopia]
%%%

I'm very confused. I guess it means it is looking for some tfm files.
Some questions:

1) Do one still (with mkiv) need tfm files?
1a) if not, do I need to do anything to install the font file.
luatools putr8a.pfb gives the right file, but
mtxrun --script fonts --list
do not list it.
1b) Is there a difference with the need of tfm files for
opentype/type1/ttf fonts?
2) If I use the old fourier.map file I can get the utopia fonts
working somehow with luatex (then it is mapped via futr8r.tfm). I also
get the fourier math fonts in the pdf, BUT then I still get the
problem explained in
http://archive.contextgarden.net/message/20070830.154143.005528b8.en.html
(see http://www.math.chalmers.se/~mickep/ftest.pdf )

Mikael
___
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
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Mikael Persson
On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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.


type-myfourier.tex
Description: TeX document


ftest.tex
Description: TeX document
___
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
___


Re: [NTG-context] Utopia and Fourier fonts

2008-09-29 Thread Wolfgang Schuster

Am 29.09.2008 um 20:35 schrieb Mikael Persson:

 On Mon, Sep 29, 2008 at 11:56 AM, Wolfgang Schuster
 [EMAIL PROTECTED] wrote:

 Am 29.09.2008 um 11:31 schrieb Mikael Persson:

 On Sun, Sep 28, 2008 at 9:34 PM, Wolfgang Schuster
 [EMAIL PROTECTED] 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]