Re: [NTG-context] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-21 Thread Wolfgang Schuster
On Sun, Jul 20, 2008 at 1:13 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 \starttypescript[myFonts]
 \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
 \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
 \stoptypescript

 \starttypescript[myFonts]
 \definetypeface [myFonts] [rm] [serif] [mySerifFont] [default]
 \definetypeface [myFonts] [ss] [sans] [mySansFont] [default]
 \stoptypescript

 You need the same name for both typefaces.

 Are you sure ?

You're playing games with me, do you?

 This works though...

 \setuppapersize [A4][A4]

 \starttypescript [serif] [mySerifFont]
 \definefontsynonym [mySerifFontRegular] [name:Times New Roman]
 [features=default]
 \definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic]
 [features=default]
 \definefontsynonym [mySerifFontBold] [name:Times New Roman Bold]
 [features=default]
 \definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold
 Italic] [features=default]
 \stoptypescript
 \starttypescript [serif] [mySerifFont]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif] [mySerifFontRegular]
 \definefontsynonym [SerifItalic] [mySerifFontItalic]
 \definefontsynonym [SerifBold] [mySerifFontBold]
 \definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic]
 \stoptypescript

 \starttypescript [sans] [mySansFont]
 \definefontsynonym [mySansFontRegular] [name:Arial] [features=default]
 \definefontsynonym [mySansFontItalic] [name:Arial Italic]
 [features=default]
 \definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default]
 \definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic]
 [features=default]
 \stoptypescript
 \starttypescript [sans] [mySansFont]
 \setups[font:fallback:sans]
 \definefontsynonym [Sans] [mySansFontRegular]
 \definefontsynonym [SansItalic] [mySansFontItalic]
 \definefontsynonym [SansBold] [mySansFontBold]
 \definefontsynonym [SansBoldItalic] [mySansFontBoldItalic]
 \stoptypescript

 \starttypescript[myFonts]
 \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
 \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
 \stoptypescript

 \usetypescript[myFonts]

 \setupbodyfont[mySerifFont,12pt]

 \definefont[myChapterFont][mySansFontRegular sa 1.728]

 \setuphead[chapter][style=\mySansFont\myChapterFont]

This works ow because you load the typeface in the chapter settings
but in your last mail you used only the \myChapter Font without the
default typeface from \setupbodyfont.

 \starttext

 \chapter{chapter test}

 \section{section test}

 text test

 \stoptext

Regards,
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-21 Thread Wolfgang Schuster
On Sat, Jul 19, 2008 at 3:25 PM, John Culleton [EMAIL PROTECTED] wrote:
 On Saturday 19 July 2008 06:03:43 am Alan Stone wrote:
 On Sat, Jul 19, 2008 at 6:49 AM, Charles P. Schaum
 [EMAIL PROTECTED]

 wrote:
  With Ubuntu and fonts there are several things going on.

 Which begets the question...

 Regarding font installation, detection and other (non font related)
 issues which occur recurrently when working with (Con)TeX(t), which
 GNU/Linux distribution(s) is(/are) most user-friendly ?

 Alan

 I just avoid font miseries by relying mostly on the \font primitive.
 The complexities of creating and using typescripts etc. take too much
 time and too much head scratching. I do use the Texfont utility to
 create the necessary font bits and pieces when I buy a new type 1
 font.

Typescript for XeTeX and LuaTeX are written in a few minutes and you
can use all font switches you can't use if you define them with \font.

  All the aliases etc. in Context don't help me much. I simply define
 the needed fonts in the sizes I will use. If I need another size I
 just copy the \font statement, change the font name and change the
 size parameter.   For nimbus bold condensed I end up with fonts named
 numbux nimbuy nimbua etc.

 This is of course not the Context way, but it saves me time and grief.

 I depend on texlive in my Slackware 12.1 distro.   Slack  comes with
 tetex but AFAIK that is no longer updated.  Therefore I don't bother
 to include it when building Slack. I install texlive from the cdr and
 then modify /etc/profile by adding
 /usr/local/texlive/2007/bin/i386-linux:
 to the PATH= string.
 Thus far the versions of Context (mkii) and pdftex etc. found on
 texlive have been stable and reliable.

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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-21 Thread Alan Stone

 You're playing games with me, do you?


Nope. I'm playing with ctx/ltx, testing by trial and error what's possible.


   You need the same name for both typefaces.


Hmmm... I was definitely interpreting this too literally then.

Thanks for your support enabling me to better understand ctx/ltx font
handling and typescripts.

Best,
Alan
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-20 Thread Alan Stone
 \starttypescript[myFonts]
 \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
 \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
 \stoptypescript

\starttypescript[myFonts]
\definetypeface [myFonts] [rm] [serif] [mySerifFont] [default]
\definetypeface [myFonts] [ss] [sans] [mySansFont] [default]
\stoptypescript

You need the same name for both typefaces.


Are you sure ?

This works though...

\setuppapersize [A4][A4]

\starttypescript [serif] [mySerifFont]
\definefontsynonym [mySerifFontRegular] [name:Times New Roman]
[features=default]
\definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic]
[features=default]
\definefontsynonym [mySerifFontBold] [name:Times New Roman Bold]
[features=default]
\definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold
Italic] [features=default]
\stoptypescript
\starttypescript [serif] [mySerifFont]
\setups[font:fallback:serif]
\definefontsynonym [Serif] [mySerifFontRegular]
\definefontsynonym [SerifItalic] [mySerifFontItalic]
\definefontsynonym [SerifBold] [mySerifFontBold]
\definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic]
\stoptypescript

\starttypescript [sans] [mySansFont]
\definefontsynonym [mySansFontRegular] [name:Arial] [features=default]
\definefontsynonym [mySansFontItalic] [name:Arial Italic]
[features=default]
\definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default]
\definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic]
[features=default]
\stoptypescript
\starttypescript [sans] [mySansFont]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [mySansFontRegular]
\definefontsynonym [SansItalic] [mySansFontItalic]
\definefontsynonym [SansBold] [mySansFontBold]
\definefontsynonym [SansBoldItalic] [mySansFontBoldItalic]
\stoptypescript

\starttypescript[myFonts]
\definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
\definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
\stoptypescript

\usetypescript[myFonts]

\setupbodyfont[mySerifFont,12pt]

\definefont[myChapterFont][mySansFontRegular sa 1.728]

\setuphead[chapter][style=\mySansFont\myChapterFont]

\starttext

\chapter{chapter test}

\section{section test}

text test

\stoptext


Alan
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-19 Thread Alan Stone
On Sat, Jul 19, 2008 at 6:49 AM, Charles P. Schaum [EMAIL PROTECTED]
wrote:

 With Ubuntu and fonts there are several things going on.


Which begets the question...

Regarding font installation, detection and other (non font related) issues
which occur recurrently when working with (Con)TeX(t), which GNU/Linux
distribution(s) is(/are) most user-friendly ?

Alan
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-19 Thread John Culleton
On Saturday 19 July 2008 06:03:43 am Alan Stone wrote:
 On Sat, Jul 19, 2008 at 6:49 AM, Charles P. Schaum
 [EMAIL PROTECTED]

 wrote:
  With Ubuntu and fonts there are several things going on.

 Which begets the question...

 Regarding font installation, detection and other (non font related)
 issues which occur recurrently when working with (Con)TeX(t), which
 GNU/Linux distribution(s) is(/are) most user-friendly ?

 Alan

I just avoid font miseries by relying mostly on the \font primitive.  
The complexities of creating and using typescripts etc. take too much 
time and too much head scratching. I do use the Texfont utility to 
create the necessary font bits and pieces when I buy a new type 1 
font.  

 All the aliases etc. in Context don't help me much. I simply define 
the needed fonts in the sizes I will use. If I need another size I 
just copy the \font statement, change the font name and change the 
size parameter.   For nimbus bold condensed I end up with fonts named 
numbux nimbuy nimbua etc.  

This is of course not the Context way, but it saves me time and grief. 

I depend on texlive in my Slackware 12.1 distro.   Slack  comes with 
tetex but AFAIK that is no longer updated.  Therefore I don't bother 
to include it when building Slack. I install texlive from the cdr and 
then modify /etc/profile by adding 
/usr/local/texlive/2007/bin/i386-linux:
to the PATH= string.  
Thus far the versions of Context (mkii) and pdftex etc. found on 
texlive have been stable and reliable. 


-- 
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Wolfgang Schuster
On Thu, Jul 17, 2008 at 5:00 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 Thanks Wolfgang.

 calm down.

 Done.

 I've let some steam off earlier on.OoOo:O)

\setuphead[chapter][style=\

 myHeadingsFont\myChapterFont]
 
 You have to load 'myHeadingsfont' typescript before you can use
 them because they are not available on outer level, only fonts used
 as bodyfont can be accesed without this selection.

 That works indeed.

I found the information to solve your problem in the fonts manual and
you should read it if you need more information.

 Oh, the number of times I read it. One more time a moment ago.

 Sooo... the Da Fonti Code is hidden in there. In which section of the manual
 did you find the clue ?

I found at page 9 and 9 what I needed.

 In my quest to further understand how this stuff works, I've been testing
 the following...

 \setuppapersize [A4][A4]

 \starttypescript [serif] [mySerifFont]
 \definefontsynonym [mySerifFontRegular] [name:Times New Roman]
 [features=default]
 \definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic]
 [features=default]
 \definefontsynonym [mySerifFontBold] [name:Times New Roman Bold]
 [features=default]
 \definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold
 Italic] [features=default]
 \stoptypescript
 \starttypescript [serif] [mySerifFont]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif] [mySerifFontRegular]
 \definefontsynonym [SerifItalic] [mySerifFontItalic]
 \definefontsynonym [SerifBold] [mySerifFontBold]
 \definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic]
 \stoptypescript
 %\starttypescript [mySerifFont]
 %\definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
 %\stoptypescript

 \starttypescript [sans] [mySansFont]
 \definefontsynonym [mySansFontRegular] [name:Arial] [features=default]
 \definefontsynonym [mySansFontItalic] [name:Arial Italic]
 [features=default]
 \definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default]
 \definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic]
 [features=default]
 \stoptypescript
 \starttypescript [sans] [mySansFont]
 \setups[font:fallback:sans]
 \definefontsynonym [Sans] [mySansFontRegular]
 \definefontsynonym [SansItalic] [mySansFontItalic]
 \definefontsynonym [SansBold] [mySansFontBold]
 \definefontsynonym [SansBoldItalic] [mySansFontBoldItalic]
 \stoptypescript
 %\starttypescript [mySansFont]
 %\definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
 %\stoptypescript

 \starttypescript[myFonts]
 \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
 \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
 \stoptypescript

\starttypescript[myFonts]
\definetypeface [myFonts] [rm] [serif] [mySerifFont] [default]
\definetypeface [myFonts] [ss] [sans] [mySansFont] [default]
\stoptypescript

You need the same name for both typefaces.

 \usetypescript[myFonts]

 \setupbodyfont[mySerifFont,12pt]% this displays the correct font
 %\setupbodyfont[mySansFont,12pt]% this displays the correct font

\setupbodyfont[myFonts]

 \definefont[myChapterFont][mySansFont sa 1.728] % compile error at line
 57 with (2) [and (1)]
 %\definefont[myChapterFont][Arial sa 1.728]   % this works with
 (1), compile error at line 57 with (2)
 %\definefont[myChapterFont][Sans sa 1.728]   % defaults to LM
 font with (1), compile error at line 57 with (2)

 %\setuphead[chapter][style=\myChapterFont]  % (1)
 %\setuphead[chapter][style=\myFonts\myChapterFont]  % (2)
 %\setuphead[chapter][style=\tfc\mySansFont] % (3) this
 works

 \starttext

 \chapter{chapter test}  % line 57

 \section{section test}

 text test

 \stoptext


 Looking for further clues.

 Alan

 P.S. Resistance is futile Fontzi...I will assimilate you!

I will add to my todo list Write a few lines about font installation
for XeTeX and LuaTeX and how to use them in style keys.

Regards,
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Wolfgang Schuster
On Thu, Jul 17, 2008 at 5:39 PM, Diego Depaoli [EMAIL PROTECTED] wrote:
 2008/7/17 Wolfgang Schuster [EMAIL PROTECTED]:
 On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli [EMAIL PROTECTED] wrote:
 2008/7/16 Alan Stone [EMAIL PROTECTED]:
 [snip]
 Many thanks in advance for your enlightening help.

 For some obscure reason right fontnames are linked with wrong filenames.
 This is the output of
 mtxrun --script fonts --list
 on my system
 [...]
 times new romanTimes New Roman
   Times_New_Roman.ttf (real filename times.ttf)
 times new roman bold   Times New Roman Bold
   Times_New_Roman_Bold.ttf (real filename timesbd.ttf)
 and so on...
 Hi Diego,

 Alans entries for the font names are correct because the files have different
 names on Mac with spaces in them.
 Understood...
 but this issue still exists in Ubuntu with such fonts imported from Windows.
 Where mtxrun catches fonts filenames?

Hi Diego,

we are talking about two differents things, what you mean is the filename
of the fonts you could access with [file:...] in typescripts and which is
different on Windows (and all other where the core font packages are used)
and on Mac. The font name is another thing and can be different from the
file name, you could access fonts by font name with [name:...] in MkIV and
this name should (not sure if this is so) be the same on both systems.

Regards,
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Olivier Guéry
 I will add to my todo list Write a few lines about font installation
 for XeTeX and LuaTeX and how to use them in style keys.

Here ? http://wiki.contextgarden.net/Fonts_in_LuaTex

Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Alan Stone
Thanks a lot for your helpful comments Wolfgang.

I will add to my todo list Write a few lines about font installation
 for XeTeX and LuaTeX and how to use them in style keys.


With the bits and pieces of information ( current and outdated ) about these
matters presently being scattered all over the place, an updated guide will
definitely be very useful for newbies ( and oldies ? ), speeding up their
comprehension and enabling them to focus on what's important, i.e.
productive issues, using ConText with LuaTeX/XeTeX.

Have a great weekend,
Alan
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Andrea Valle

Yes, please. I totally agree with Alan.

Sorry if I insist.

Best

-a-

On 18 Jul 2008, at 22:45, Alan Stone wrote:


Thanks a lot for your helpful comments Wolfgang.

I will add to my todo list Write a few lines about font installation
for XeTeX and LuaTeX and how to use them in style keys.

With the bits and pieces of information ( current and outdated )  
about these matters presently being scattered all over the place,  
an updated guide will definitely be very useful for newbies ( and  
oldies ? ), speeding up their comprehension and enabling them to  
focus on what's important, i.e. productive issues, using ConText  
with LuaTeX/XeTeX.


Have a great weekend,
Alan

__ 
_
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
__ 
_


--
Andrea Valle
--
CIRMA - DAMS
Università degli Studi di Torino
-- http://www.cirma.unito.it/andrea/
-- http://www.myspace.com/andreavalle
-- [EMAIL PROTECTED]
--



Think of it as seasoning
. noise [salt] is boring
. F(blah) [food without salt] can be boring
. F(noise, blah) can be really tasty

(Ken Perlin on noise)





___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-18 Thread Charles P. Schaum
With Ubuntu and fonts there are several things going on.

Generally, the system-wide fonts are kept under /usr/share/fonts

An alternate place could be /usr/local/fonts

That, however, is usually empty because packages put fonts in named
directories, e.g., in the ttf dir in /usr/share/fonts

TeX-related fonts basically sit in the texmf tree, usually
in /usr/share/texmf-texlive/fonts

You can also add your own into /usr/share/texmf/fonts

Or you can put fonts into ~/.fonts and into your (correct me if I err)
~/.texmf-var/fonts

THEN there's defoma, the Debian Font Manager, and I am not sure what
ramifications exist there. There is a way to make things like otf fonts
in your texmf trees visible to defoma, but I have yet to RTFMP, except
to install the cm-super XII package.

HTH

Charles

On Fri, 2008-07-18 at 23:22 +0200, Diego Depaoli wrote:
 2008/7/18 Wolfgang Schuster [EMAIL PROTECTED]:
  but this issue still exists in Ubuntu with such fonts imported from 
  Windows.
  Where mtxrun catches fonts filenames?
 
  Hi Diego,
 Hello Wolfgang,
 
  we are talking about two differents things, what you mean is the filename
  of the fonts you could access with [file:...] in typescripts and which is
  different on Windows (and all other where the core font packages are used)
  and on Mac. The font name is another thing and can be different from the
  file name, you could access fonts by font name with [name:...] in MkIV and
  this name should (not sure if this is so) be the same on both systems.
 
 That's clear to me, but my question was about the wrong correspondence
 between font names and filename.
 As I wrote mtxrun --script fonts --lists showed filenames which I
 didn't find anywhere, so I thought mtxrun rewrote them.
 Repeating the same procedure under FreeBSD all goes right.
 Perhaps in my Ubuntu system there is more than one Times New Roman,
 Arial..., (even I don't know where they live) and this confused
 ConTeXt.
 Next time I boot Ubuntu, I'll search in the whole filesystem.
 Thanks for the answer and sorry for the noise.
 

___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Wolfgang Schuster
On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli [EMAIL PROTECTED] wrote:
 2008/7/16 Alan Stone [EMAIL PROTECTED]:
 [snip]
 Many thanks in advance for your enlightening help.

 For some obscure reason right fontnames are linked with wrong filenames.
 This is the output of
 mtxrun --script fonts --list
 on my system
 [...]
 times new romanTimes New Roman
   Times_New_Roman.ttf (real filename times.ttf)
 times new roman bold   Times New Roman Bold
   Times_New_Roman_Bold.ttf (real filename timesbd.ttf)
 and so on...

 You must rename the files (tested, it works) or change [name:Times New
 Roman] with [file:times] in your typescript (untested)
 Cheers

Hi Diego,

Alans entries for the font names are correct because the files have different
names on Mac with spaces in them.

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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Wolfgang Schuster
Hi Alan,

calm down.

On Wed, Jul 16, 2008 at 9:18 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 (1) \definefont[myChapterFont][myHeadingsFont sa 1.728]
You could either use a real font name like 'Arial' or a symbolic name
defined with \definefontsynonym like 'Serif', 'SerifBold', 'Sans',
'Dummy-Regular' etc. in the second argument of \definefont but not
the name for a font collection defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]

 So ( and considering the example at
 http://wiki.contextgarden.net/Chapters_headers )
 I tried...

 \setuppapersize [A4][A4]

 \starttypescript [serif] [myBodyFont]
 \definefontsynonym [myBodyFontRegular] [name:Times New Roman]
 [features=default]
 \definefontsynonym [myBodyFontItalic] [name:Times New Roman Italic]
 [features=default]
 \definefontsynonym [myBodyFontBold] [name:Times New Roman Bold]
 [features=default]
 \definefontsynonym [myBodyFontBoldItalic] [name:Times New Roman Bold
 Italic] [features=default]
 \stoptypescript
 \starttypescript [serif] [myBodyFont]
 \setups[font:fallback:serif]
 \definefontsynonym [Serif] [myBodyFontRegular]
 \definefontsynonym [SerifItalic] [myBodyFontItalic]
 \definefontsynonym [SerifBold] [myBodyFontBold]
 \definefontsynonym [SerifBoldItalic] [myBodyFontBoldItalic]
 \stoptypescript
 \starttypescript [myBodyFont]
 \definetypeface [myBodyFont] [rm] [serif] [myBodyFont] [default]
 \stoptypescript

 \starttypescript [sans] [myHeadingsFont]
 \definefontsynonym [myHeadingsFontRegular] [name:Arial]
 [features=default]
 \definefontsynonym [myHeadingsFontItalic] [name:Arial Italic]
 [features=default]
 \definefontsynonym [myHeadingsFontBold] [name:Arial Bold]
 [features=default]
 \definefontsynonym [myHeadingsFontBoldItalic] [name:Arial Bold Italic]
 [features=default]
 \stoptypescript
 \starttypescript [sans] [myHeadingsFont]
 \setups[font:fallback:sans]
 \definefontsynonym [Sans] [myHeadingsFontRegular]
 \definefontsynonym [SansItalic] [myHeadingsFontItalic]
 \definefontsynonym [SansBold] [myHeadingsFontBold]
 \definefontsynonym [SansBoldItalic] [myHeadingsFontBoldItalic]
 \stoptypescript
 \starttypescript [myHeadingsFont]
 \definetypeface [myHeadingsFont] [ss] [sans] [myHeadingsFont] [default]
 \stoptypescript

 \usetypescript[myBodyFont]
 \usetypescript[myHeadingsFont]

 \setupbodyfont[myBodyFont,12pt]% this works: body font displays in the
 correct font

 %\definefont[myChapterFont][myHeadingsFontRegular sa 1.728] % compile
 error at line 51: WHY ?
 \definefont[myChapterFont][Arial sa
 1.728]  % only this works: WHY ?
 %\definefont[myChapterFont][Sans sa 1.728]
 % defaults to default LM font for line 51: WHY ?

 %\setuphead[chapter][style=myChapterFont]
 \setuphead[chapter][style=\myChapterFont]

\setuphead[chapter][style=\myHeadingsFont\myChapterFont]

You have to load 'myHeadingsfont' typescript before you can use
them because they are not available on outer level, only fonts used
as bodyfont can be accesed without this selection.

 \starttext

 \chapter{chapter test}  % line 51

 \section{section test}

 text test

 \stoptext

 Many thanks in advance for your enlightening help.

I found the information to solve your problem in the fonts manual and
you should read it if you need more information.

http://pragma-ade.com/general/manuals/mfonts.pdf

Regards,
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Wolfgang Schuster
On Wed, Jul 16, 2008 at 9:18 PM, Alan Stone
[EMAIL PROTECTED] wrote:
 (1) \definefont[myChapterFont][myHeadingsFont sa 1.728]
You could either use a real font name like 'Arial' or a symbolic name
defined with \definefontsynonym like 'Serif', 'SerifBold', 'Sans',
'Dummy-Regular' etc. in the second argument of \definefont but not
the name for a font collection defined with \definetype, in your case
\definefont[myChapterFont][Sans sa 1.728]
or
\definefont[myChapterFont][DummyRegular sa 1.728]

 So ( and considering the example at
 http://wiki.contextgarden.net/Chapters_headers )
 I tried...

The example use the two symbolic names Regular and RegularBold which
are defined as synonyms for Serif and SerifBold wich are itself will always
work because they result in the current serif regular and serif bold style
independant of the font.

Regards,
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Alan Stone
Thanks Wolfgang.

 calm down.

Done.

I've let some steam off earlier on.OoOo:O)

\setuphead[chapter][style=\

 myHeadingsFont\myChapterFont]
 
 You have to load 'myHeadingsfont' typescript before you can use
 them because they are not available on outer level, only fonts used
 as bodyfont can be accesed without this selection.


That works indeed.

I found the information to solve your problem in the fonts manual and
you should read it if you need more information.

Oh, the number of times I read it. One more time a moment ago.

Sooo... the Da Fonti Code is hidden in there. In which section of the manual
did you find the clue ?


In my quest to further understand how this stuff works, I've been testing
the following...

\setuppapersize [A4][A4]

\starttypescript [serif] [mySerifFont]
\definefontsynonym [mySerifFontRegular] [name:Times New Roman]
[features=default]
\definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic]
[features=default]
\definefontsynonym [mySerifFontBold] [name:Times New Roman Bold]
[features=default]
\definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold
Italic] [features=default]
\stoptypescript
\starttypescript [serif] [mySerifFont]
\setups[font:fallback:serif]
\definefontsynonym [Serif] [mySerifFontRegular]
\definefontsynonym [SerifItalic] [mySerifFontItalic]
\definefontsynonym [SerifBold] [mySerifFontBold]
\definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic]
\stoptypescript
%\starttypescript [mySerifFont]
%\definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
%\stoptypescript

\starttypescript [sans] [mySansFont]
\definefontsynonym [mySansFontRegular] [name:Arial] [features=default]
\definefontsynonym [mySansFontItalic] [name:Arial Italic]
[features=default]
\definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default]
\definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic]
[features=default]
\stoptypescript
\starttypescript [sans] [mySansFont]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [mySansFontRegular]
\definefontsynonym [SansItalic] [mySansFontItalic]
\definefontsynonym [SansBold] [mySansFontBold]
\definefontsynonym [SansBoldItalic] [mySansFontBoldItalic]
\stoptypescript
%\starttypescript [mySansFont]
%\definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
%\stoptypescript

\starttypescript[myFonts]
\definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default]
\definetypeface [mySansFont] [ss] [sans] [mySansFont] [default]
\stoptypescript

\usetypescript[myFonts]

\setupbodyfont[mySerifFont,12pt]% this displays the correct font
%\setupbodyfont[mySansFont,12pt]% this displays the correct font

\definefont[myChapterFont][mySansFont sa 1.728] % compile error at line
57 with (2) [and (1)]
%\definefont[myChapterFont][Arial sa 1.728]   % this works with
(1), compile error at line 57 with (2)
%\definefont[myChapterFont][Sans sa 1.728]   % defaults to LM
font with (1), compile error at line 57 with (2)

%\setuphead[chapter][style=\myChapterFont]  % (1)
%\setuphead[chapter][style=\myFonts\myChapterFont]  % (2)
%\setuphead[chapter][style=\tfc\mySansFont] % (3) this
works

\starttext

\chapter{chapter test}  % line 57

\section{section test}

text test

\stoptext


Looking for further clues.

Alan

P.S. Resistance is futile Fontzi...I will assimilate you!
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-17 Thread Diego Depaoli
2008/7/17 Wolfgang Schuster [EMAIL PROTECTED]:
 On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli [EMAIL PROTECTED] wrote:
 2008/7/16 Alan Stone [EMAIL PROTECTED]:
 [snip]
 Many thanks in advance for your enlightening help.

 For some obscure reason right fontnames are linked with wrong filenames.
 This is the output of
 mtxrun --script fonts --list
 on my system
 [...]
 times new romanTimes New Roman
   Times_New_Roman.ttf (real filename times.ttf)
 times new roman bold   Times New Roman Bold
   Times_New_Roman_Bold.ttf (real filename timesbd.ttf)
 and so on...
 Hi Diego,

 Alans entries for the font names are correct because the files have different
 names on Mac with spaces in them.
Understood...
but this issue still exists in Ubuntu with such fonts imported from Windows.
Where mtxrun catches fonts filenames?

Cheers
-- 
Diego Depaoli
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-16 Thread Diego Depaoli
2008/7/16 Alan Stone [EMAIL PROTECTED]:
[snip]
 Many thanks in advance for your enlightening help.

For some obscure reason right fontnames are linked with wrong filenames.
This is the output of
mtxrun --script fonts --list
on my system
[...]
times new romanTimes New Roman
   Times_New_Roman.ttf (real filename times.ttf)
times new roman bold   Times New Roman Bold
   Times_New_Roman_Bold.ttf (real filename timesbd.ttf)
and so on...

You must rename the files (tested, it works) or change [name:Times New
Roman] with [file:times] in your typescript (untested)
Cheers

-- 
Diego Depaoli
___
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] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]

2008-07-16 Thread Diego Depaoli
I missed...
2008/7/17 Diego Depaoli [EMAIL PROTECTED]:

 You must rename the files (tested, it works
with --lua and --xtx switches
)



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