ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
@ 2008-07-20 11:13 Alan Stone
  2008-07-21  6:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Stone @ 2008-07-20 11:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 3052 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-20 11:13 Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ] Alan Stone
@ 2008-07-21  6:29 ` Wolfgang Schuster
  2008-07-21  7:26   ` Alan Stone
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-21  6:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Jul 20, 2008 at 1:13 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-21  6:29 ` Wolfgang Schuster
@ 2008-07-21  7:26   ` Alan Stone
  0 siblings, 0 replies; 21+ messages in thread
From: Alan Stone @ 2008-07-21  7:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 872 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-19 13:25               ` John Culleton
@ 2008-07-21  6:38                 ` Wolfgang Schuster
  0 siblings, 0 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-21  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Jul 19, 2008 at 3:25 PM, John Culleton <john@wexfordpress.com> 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
>> <verbo.solo@sbcglobal.net>
>>
>> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-19 10:03             ` Alan Stone
@ 2008-07-19 13:25               ` John Culleton
  2008-07-21  6:38                 ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: John Culleton @ 2008-07-19 13:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Saturday 19 July 2008 06:03:43 am Alan Stone wrote:
> On Sat, Jul 19, 2008 at 6:49 AM, Charles P. Schaum
> <verbo.solo@sbcglobal.net>
>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-19  4:49           ` Charles P. Schaum
@ 2008-07-19 10:03             ` Alan Stone
  2008-07-19 13:25               ` John Culleton
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Stone @ 2008-07-19 10:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Sat, Jul 19, 2008 at 6:49 AM, Charles P. Schaum <verbo.solo@sbcglobal.net>
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

[-- Attachment #1.2: Type: text/html, Size: 651 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-18 21:22         ` Diego Depaoli
@ 2008-07-19  4:49           ` Charles P. Schaum
  2008-07-19 10:03             ` Alan Stone
  0 siblings, 1 reply; 21+ messages in thread
From: Charles P. Schaum @ 2008-07-19  4:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <schuster.wolfgang@googlemail.com>:
> >> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-18 20:45       ` Alan Stone
@ 2008-07-18 21:44         ` Andrea Valle
  0 siblings, 0 replies; 21+ messages in thread
From: Andrea Valle @ 2008-07-18 21:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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
--> andrea.valle@unito.it
--------------------------------------------------


"
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)






[-- Attachment #1.2: Type: text/html, Size: 7236 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-18 15:16       ` Wolfgang Schuster
@ 2008-07-18 21:22         ` Diego Depaoli
  2008-07-19  4:49           ` Charles P. Schaum
  0 siblings, 1 reply; 21+ messages in thread
From: Diego Depaoli @ 2008-07-18 21:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/18 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>> 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.

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


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-18 15:12     ` Wolfgang Schuster
  2008-07-18 15:56       ` Olivier Guéry
@ 2008-07-18 20:45       ` Alan Stone
  2008-07-18 21:44         ` Andrea Valle
  1 sibling, 1 reply; 21+ messages in thread
From: Alan Stone @ 2008-07-18 20:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

[-- Attachment #1.2: Type: text/html, Size: 803 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-18 15:12     ` Wolfgang Schuster
@ 2008-07-18 15:56       ` Olivier Guéry
  2008-07-18 20:45       ` Alan Stone
  1 sibling, 0 replies; 21+ messages in thread
From: Olivier Guéry @ 2008-07-18 15:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-17 15:39     ` Diego Depaoli
@ 2008-07-18 15:16       ` Wolfgang Schuster
  2008-07-18 21:22         ` Diego Depaoli
  0 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-18 15:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jul 17, 2008 at 5:39 PM, Diego Depaoli <trebestie@gmail.com> wrote:
> 2008/7/17 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
>> On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli <trebestie@gmail.com> wrote:
>>> 2008/7/16 Alan Stone <software.list.1es9s@gmail.com>:
>>> [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 roman                        Times 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-17 15:00   ` Alan Stone
@ 2008-07-18 15:12     ` Wolfgang Schuster
  2008-07-18 15:56       ` Olivier Guéry
  2008-07-18 20:45       ` Alan Stone
  0 siblings, 2 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-18 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jul 17, 2008 at 5:00 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-17  6:30   ` Wolfgang Schuster
@ 2008-07-17 15:39     ` Diego Depaoli
  2008-07-18 15:16       ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Diego Depaoli @ 2008-07-17 15:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/17 Wolfgang Schuster <schuster.wolfgang@googlemail.com>:
> On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli <trebestie@gmail.com> wrote:
>> 2008/7/16 Alan Stone <software.list.1es9s@gmail.com>:
>> [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 roman                        Times 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-17  6:43 ` Wolfgang Schuster
@ 2008-07-17 15:00   ` Alan Stone
  2008-07-18 15:12     ` Wolfgang Schuster
  0 siblings, 1 reply; 21+ messages in thread
From: Alan Stone @ 2008-07-17 15:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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!

[-- Attachment #1.2: Type: text/html, Size: 4891 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-16 19:18 Alan Stone
  2008-07-16 23:14 ` Diego Depaoli
  2008-07-17  6:43 ` Wolfgang Schuster
@ 2008-07-17 11:32 ` Wolfgang Schuster
  2 siblings, 0 replies; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-17 11:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Jul 16, 2008 at 9:18 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-16 19:18 Alan Stone
  2008-07-16 23:14 ` Diego Depaoli
@ 2008-07-17  6:43 ` Wolfgang Schuster
  2008-07-17 15:00   ` Alan Stone
  2008-07-17 11:32 ` Wolfgang Schuster
  2 siblings, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-17  6:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Alan,

calm down.

On Wed, Jul 16, 2008 at 9:18 PM, Alan Stone
<software.list.1es9s@gmail.com> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-16 23:14 ` Diego Depaoli
  2008-07-16 23:23   ` Diego Depaoli
@ 2008-07-17  6:30   ` Wolfgang Schuster
  2008-07-17 15:39     ` Diego Depaoli
  1 sibling, 1 reply; 21+ messages in thread
From: Wolfgang Schuster @ 2008-07-17  6:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Jul 17, 2008 at 1:14 AM, Diego Depaoli <trebestie@gmail.com> wrote:
> 2008/7/16 Alan Stone <software.list.1es9s@gmail.com>:
> [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 roman                        Times 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-16 23:14 ` Diego Depaoli
@ 2008-07-16 23:23   ` Diego Depaoli
  2008-07-17  6:30   ` Wolfgang Schuster
  1 sibling, 0 replies; 21+ messages in thread
From: Diego Depaoli @ 2008-07-16 23:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I missed...
2008/7/17 Diego Depaoli <trebestie@gmail.com>:
>
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
  2008-07-16 19:18 Alan Stone
@ 2008-07-16 23:14 ` Diego Depaoli
  2008-07-16 23:23   ` Diego Depaoli
  2008-07-17  6:30   ` Wolfgang Schuster
  2008-07-17  6:43 ` Wolfgang Schuster
  2008-07-17 11:32 ` Wolfgang Schuster
  2 siblings, 2 replies; 21+ messages in thread
From: Diego Depaoli @ 2008-07-16 23:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2008/7/16 Alan Stone <software.list.1es9s@gmail.com>:
[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 roman                        Times 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 21+ messages in thread

* Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
@ 2008-07-16 19:18 Alan Stone
  2008-07-16 23:14 ` Diego Depaoli
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Alan Stone @ 2008-07-16 19:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> (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]

\starttext

\chapter{chapter test}      % line 51

\section{section test}

text test

\stoptext


Many thanks in advance for your enlightening help.

Alan

[-- Attachment #1.2: Type: text/html, Size: 4116 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-07-21  7:26 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 11:13 Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ] Alan Stone
2008-07-21  6:29 ` Wolfgang Schuster
2008-07-21  7:26   ` Alan Stone
  -- strict thread matches above, loose matches on Subject: below --
2008-07-16 19:18 Alan Stone
2008-07-16 23:14 ` Diego Depaoli
2008-07-16 23:23   ` Diego Depaoli
2008-07-17  6:30   ` Wolfgang Schuster
2008-07-17 15:39     ` Diego Depaoli
2008-07-18 15:16       ` Wolfgang Schuster
2008-07-18 21:22         ` Diego Depaoli
2008-07-19  4:49           ` Charles P. Schaum
2008-07-19 10:03             ` Alan Stone
2008-07-19 13:25               ` John Culleton
2008-07-21  6:38                 ` Wolfgang Schuster
2008-07-17  6:43 ` Wolfgang Schuster
2008-07-17 15:00   ` Alan Stone
2008-07-18 15:12     ` Wolfgang Schuster
2008-07-18 15:56       ` Olivier Guéry
2008-07-18 20:45       ` Alan Stone
2008-07-18 21:44         ` Andrea Valle
2008-07-17 11:32 ` Wolfgang Schuster

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).