ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: LinuxLibertine Typescript (was : fonts and luatex)
@ 2008-04-14 12:05 Olivier Guéry
  2008-04-15  6:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier Guéry @ 2008-04-14 12:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> \starttypescript [serif] [linuxlibertine]
>  \setups[font:fallback:serif]
> \definefontsynonym [Serif]           [LinLibertine-Regular]
> \definefontsynonym [SerifBold]       [LinLibertine-Bold]
> \definefontsynonym [SerifItalic]     [LinLibertine-Italic]
> \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
> \definefontsynonym [SerifCaps]       [LinLibertine-Caps]
>\stoptypescript
>
>\starttypescript [serif] [linuxlibertine]
> \definefontsynonym [LinLibertine-Regular] [file:LinLibertine_Re-2.7.9.9] [features=default]
> \definefontsynonym [LinLibertine-Bold] [file:LinLibertine_Bd-2.7.8]   [features=default]
> \definefontsynonym [LinLibertine-Italic] [file:LinLibertine_It-2.7.8]   [features=default]
> \definefontsynonym [LinLibertine-BoldItalic] [file:LinLibertine_BI-2.7.2]   [features=default]
> \definefontsynonym [LinLibertine-Caps] [file:LinLibertineC_Re-2.7.3]  [features=default]
>\stoptypescript
>
>\starttypescript [linuxlibertine]
> \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
>\stoptypescript
>
>
>\usetypescript[linuxlibertine]
>\setupbodyfont[linuxlibertine]
>
>\starttext
>Text in Linux Libertine.
>\stoptext


Thank's for the help, but I got this error :


[…]
specials       : fdf loaded
) (/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex)
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.tex)
(/usr/share/texmf/tex/context/base/type-tmf.tex)
(/usr/share/texmf/tex/context/base/type-siz.tex)
(/usr/share/texmf/tex/context/base/type-otf.texThis went wrong:
/usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
field '?' (a nil value)
).
<to be read again>
                   \relax
\xxdododefinefont ...tspec {#4}\newfontidentifier
                                                  \let \localrelativefontsiz...
\fontstrategy ...me \fontclass #2#3#4#5\endcsname
                                                  \tryingfontfalse \fi
<inserted text> ...yle \fontalternative \fontsize
                                                  \fi \iftryingfont \fontstr...
\synchronizefont ...strategy \the \fontstrategies
                                                  \relax \fi \iftryingfont \...
<argument> \getvalue {\@style@ \fontstyle }
                                           \edef \fontstyle {\fontstyle }\if...
...
l.32 \setupbodyfont[linuxlibertine]

?

I have exactly the same version of libertine font in
/usr/share/texmf/fonts/opentype/public/linlibertine

Greetings,
Olivier.

--
[tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier nemolivier@gmail.com 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] 4+ messages in thread

* Re: LinuxLibertine Typescript (was : fonts and luatex)
  2008-04-14 12:05 LinuxLibertine Typescript (was : fonts and luatex) Olivier Guéry
@ 2008-04-15  6:20 ` Wolfgang Schuster
  2008-04-15  7:46   ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2008-04-15  6:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Apr 14, 2008 at 2:05 PM, Olivier Guéry <nemolivier@gmail.com> wrote:
> > \starttypescript [serif] [linuxlibertine]
> >  \setups[font:fallback:serif]
> > \definefontsynonym [Serif]           [LinLibertine-Regular]
> > \definefontsynonym [SerifBold]       [LinLibertine-Bold]
> > \definefontsynonym [SerifItalic]     [LinLibertine-Italic]
> > \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
> > \definefontsynonym [SerifCaps]       [LinLibertine-Caps]
> >\stoptypescript
> >
> >\starttypescript [serif] [linuxlibertine]
> > \definefontsynonym [LinLibertine-Regular] [file:LinLibertine_Re-2.7.9.9] [features=default]
> > \definefontsynonym [LinLibertine-Bold] [file:LinLibertine_Bd-2.7.8]   [features=default]
> > \definefontsynonym [LinLibertine-Italic] [file:LinLibertine_It-2.7.8]   [features=default]
> > \definefontsynonym [LinLibertine-BoldItalic] [file:LinLibertine_BI-2.7.2]   [features=default]
> > \definefontsynonym [LinLibertine-Caps] [file:LinLibertineC_Re-2.7.3]  [features=default]
> >\stoptypescript
> >
> >\starttypescript [linuxlibertine]
> > \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
> >\stoptypescript
> >
> >
> >\usetypescript[linuxlibertine]
> >\setupbodyfont[linuxlibertine]
> >
> >\starttext
> >Text in Linux Libertine.
> >\stoptext
>
>
> Thank's for the help, but I got this error :
>
>
> […]
> specials       : fdf loaded
> ) (/usr/share/texmf/tex/context/base/type-tmf.tex)
> (/usr/share/texmf/tex/context/base/type-siz.tex)
> (/usr/share/texmf/tex/context/base/type-otf.tex)
> (/usr/share/texmf/tex/context/base/type-tmf.tex)
> (/usr/share/texmf/tex/context/base/type-siz.tex)
> (/usr/share/texmf/tex/context/base/type-otf.tex)
> (/usr/share/texmf/tex/context/base/type-tmf.tex)
> (/usr/share/texmf/tex/context/base/type-siz.tex)
> (/usr/share/texmf/tex/context/base/type-otf.texThis went wrong:
> /usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
> field '?' (a nil value)
> ).
> <to be read again>
>                   \relax
> \xxdododefinefont ...tspec {#4}\newfontidentifier
>                                                  \let \localrelativefontsiz...
> \fontstrategy ...me \fontclass #2#3#4#5\endcsname
>                                                  \tryingfontfalse \fi
> <inserted text> ...yle \fontalternative \fontsize
>                                                  \fi \iftryingfont \fontstr...
> \synchronizefont ...strategy \the \fontstrategies
>                                                  \relax \fi \iftryingfont \...
> <argument> \getvalue {\@style@ \fontstyle }
>                                           \edef \fontstyle {\fontstyle }\if...
> ...
> l.32 \setupbodyfont[linuxlibertine]
>
> ?
>
> I have exactly the same version of libertine font in
> /usr/share/texmf/fonts/opentype/public/linlibertine

I tested the font setups yesterday on my own system I got the same error
message but I found also the reason for this.

The Libertine fonts contains pints in the font names and this did currently
not work with MkIV, a temporary solution is to rename the fonts and remove
the version number from the fonts names. I know this is not perfect and Hans
is able to fiy this but it should do it for the moment.

I tested also to use the name of the fonts instead of the file name and this
did also work (after you removed the version number).

The new typescripts are:


\starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]           [LinLibertine-Regular]
  \definefontsynonym [SerifBold]       [LinLibertine-Bold]
  \definefontsynonym [SerifItalic]     [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]       [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular]    [name:Linux Libertine
O]             [features=default]
  \definefontsynonym [LinLibertine-Bold]       [name:Linux Libertine O
Bold]        [features=default]
  \definefontsynonym [LinLibertine-Italic]     [name:Linux Libertine O
Italic]      [features=default]
  \definefontsynonym [LinLibertine-BoldItalic] [name:Linux Libertine O
Bold Italic] [features=default]
  \definefontsynonym [LinLibertine-Caps]       [name:Linux Libertine O
Capitals]    [features=default]
\stoptypescript

\starttypescript [linuxlibertine]
  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript

Greetings
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] 4+ messages in thread

* Re: LinuxLibertine Typescript (was : fonts and luatex)
  2008-04-15  6:20 ` Wolfgang Schuster
@ 2008-04-15  7:46   ` Hans Hagen
  2008-04-15 12:47     ` Olivier Guéry
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2008-04-15  7:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster wrote:

>> /usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
>> field '?' (a nil value)

> I tested the font setups yesterday on my own system I got the same error
> message but I found also the reason for this.

ok, such an error should not happen

> The Libertine fonts contains pints in the font names and this did currently
> not work with MkIV, a temporary solution is to rename the fonts and remove
> the version number from the fonts names. I know this is not perfect and Hans
> is able to fiy this but it should do it for the moment.
> 
> I tested also to use the name of the fonts instead of the file name and this
> did also work (after you removed the version number).


[file:bla 1.2.3]

may be problematic anyway (the space) so best try:

[file:bla1.2.3]

just remove spaces in names, which is what happens behind the screens too



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread

* Re: LinuxLibertine Typescript (was : fonts and luatex)
  2008-04-15  7:46   ` Hans Hagen
@ 2008-04-15 12:47     ` Olivier Guéry
  0 siblings, 0 replies; 4+ messages in thread
From: Olivier Guéry @ 2008-04-15 12:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Apr 15, 2008 at 9:46 AM, Hans Hagen <pragma@wxs.nl> wrote:
> Wolfgang Schuster wrote:
>
>  >> /usr/share/texmf/tex/context/base/font-def.lua:226: attempt to call
>  >> field '?' (a nil value)
>
>
> > I tested the font setups yesterday on my own system I got the same error
>  > message but I found also the reason for this.
>
>  ok, such an error should not happen
>
>
>  > The Libertine fonts contains pints in the font names and this did currently
>  > not work with MkIV, a temporary solution is to rename the fonts and remove
>  > the version number from the fonts names. I know this is not perfect and Hans
>  > is able to fiy this but it should do it for the moment.
>  >
>  > I tested also to use the name of the fonts instead of the file name and this
>  > did also work (after you removed the version number).
>
>
>  [file:bla 1.2.3]
>
>  may be problematic anyway (the space) so best try:
>
>  [file:bla1.2.3]
>
>  just remove spaces in names, which is what happens behind the screens too
>

It seems to work. thank's a lot.
Now, let's play with the otf features…

Olivier.



-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier nemolivier@gmail.com 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] 4+ messages in thread

end of thread, other threads:[~2008-04-15 12:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-14 12:05 LinuxLibertine Typescript (was : fonts and luatex) Olivier Guéry
2008-04-15  6:20 ` Wolfgang Schuster
2008-04-15  7:46   ` Hans Hagen
2008-04-15 12:47     ` Olivier Guéry

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