Dohyun Kim | 1 Apr 2011 08:59
Picon

Re: Italic correction

Hi,

2011/3/31 Ulrike Fischer <news3@...>:
> Hallo,
>
>
> xetex and luatex have problems with the italic correction when they
> use open type fonts. xetex seems to calculate at least in some
> places an italic correction (but fails in the math too), in luatex
> there is not italic correction at all.
>
> I found some old discussions in the xetex list but nothing really
> decisive about if and how the problem should/will be solved. Does
> someone here knows more about it?
>
>
> \documentclass[12pt]{article}
>
> \usepackage{fontspec}
> \setmainfont{Times New Roman}
> \makeatletter
> \DeclareSymbolFont{letters}{\zf <at> enc}\rmdefault\mddefault\itdefault
> %\DeclareSymbolFont{letters}{T1}{ptm}\mddefault\itdefault
> \begin{document}
>
> {\itshape f}( {\itshape f\/}(  \emph{f}(  \textit{f}( \textit{f\/}(
>
> $f(a)$
> \end{document}
>
(Continue reading)

Ulrike Fischer | 1 Apr 2011 09:46
Picon

Re: Italic correction

Am Fri, 1 Apr 2011 15:59:03 +0900 schrieb Dohyun Kim:

>> xetex and luatex have problems with the italic correction when they
>> use open type fonts. xetex seems to calculate at least in some
>> places an italic correction (but fails in the math too), in luatex
>> there is not italic correction at all.

>> I found some old discussions in the xetex list but nothing really
>> decisive about if and how the problem should/will be solved. Does
>> someone here knows more about it?

>> \documentclass[12pt]{article}
>>
>> \usepackage{fontspec}
>> \setmainfont{Times New Roman}
>> \makeatletter
>> \DeclareSymbolFont{letters}{\zf <at> enc}\rmdefault\mddefault\itdefault
>> %\DeclareSymbolFont{letters}{T1}{ptm}\mddefault\itdefault
>> \begin{document}
>>
>> {\itshape f}( {\itshape f\/}(  \emph{f}(  \textit{f}( \textit{f\/}(
>>
>> $f(a)$
>> \end{document}
>>
> 
> Under current lualatex, we cat get some effect close to italic
> correction with "+itlc" option:
> 
>     \setmainfont[ItalicFeatures={RawFeature=+itlc}]{Times New Roman}
(Continue reading)

Will Robertson | 1 Apr 2011 14:58
Picon
Gravatar

Re: Italic correction

(Sent quickly. Please excuse brevity.)

On 01/04/2011, at 6:16 PM, Ulrike Fischer <news3@...> wrote:

>> Under current lualatex, we cat get some effect close to italic
>> correction with "+itlc" option:
>> 
>>    \setmainfont[ItalicFeatures={RawFeature=+itlc}]{Times New Roman}
> 
> 
> Neat ;-).  That solves the one half of the problem. It would be
> perhaps a good idea if fontspec would activate it by default for
> lualatex.

I haven't seen this before. Is it a faux font feature?
If it should be loaded by default, then luaotfload is probably the better place for it. 

W

Ulrike Fischer | 1 Apr 2011 15:12
Picon

Re: Italic correction

Am Fri, 1 Apr 2011 23:28:45 +1030 schrieb Will Robertson:

>>> Under current lualatex, we cat get some effect close to italic
>>> correction with "+itlc" option:
>>> 
>>>    \setmainfont[ItalicFeatures={RawFeature=+itlc}]{Times New Roman}

>> Neat ;-).  That solves the one half of the problem. It would be
>> perhaps a good idea if fontspec would activate it by default for
>> lualatex.

> I haven't seen this before. Is it a faux font feature?

Yes.

J:\context-minimals\context\tex\texmf-context\tex\context\base>grep
itlc *.lua
font-dum.lua:table.insert(fonts.triggers,"itlc")
font-dum.lua:local function itlc(tfmdata,value)
font-dum.lua:fonts.initializers.base.otf.itlc = itlc
font-dum.lua:fonts.initializers.node.otf.itlc = itlc
font-ext.lua:table.insert(triggers,"itlc")
font-ext.lua:function initializers.common.itlc(tfmdata,value)
font-ext.lua:initializers.base.otf.itlc = initializers.common.itlc
font-ext.lua:initializers.node.otf.itlc = initializers.common.itlc
font-ext.lua:initializers.base.afm.itlc = initializers.common.itlc
font-ext.lua:initializers.node.afm.itlc = initializers.common.itlc

> If it should be loaded by default, then luaotfload is probably the better place for it. 

(Continue reading)

Will Robertson | 3 Apr 2011 06:57
Picon
Gravatar

Re: Italic correction

On 01/04/2011, at 11:42 PM, Ulrike Fischer wrote:

>> If it should be loaded by default, then luaotfload is probably the better place for it. 
> 
> But then it would be probably difficult to disable it again. Also
> can luaotfload differ between italic and non-italic fonts? I have no
> idea what the tag does when used with arbitrary fonts.

Okay, I've added it as an issue for fontspec; I'll add it before TL2011.

Cheers,
-- Will

Ulrike Fischer | 15 Apr 2011 10:44
Picon

fontspec problem: \letterspacefont looses small caps feature

In the following document I loose the small caps font in the first
example (with \scshape), it works fine when I load the font with low
level commands (the actual problem came up with the newest microtype
beta + \textls, I stripped it down). 

\documentclass{scrreprt}
\usepackage{ifluatex}
\ifluatex
 \usepackage{fontspec}
 \setmainfont{Linux Libertine O}
\fi

\usepackage{microtype}
\begin{document}
%faulty

{\scshape abc
 \letterspacefont\lsfont\font1000 \lsfont abc}

%okay
{\font\test={LinuxLibertineO:+smcp}\test abc
 \letterspacefont\lsfont\font1000 \lsfont abc}

%okay
{\itshape abc
 \letterspacefont\lsfont\font1000 \lsfont abc}

\end{document}

--

-- 
(Continue reading)

Ulrik Vieth | 17 Apr 2011 21:39
Picon
Favicon
Gravatar

LuaTeX 0.66 segfaults when loading graphicx in LuaLaTeX

I am using LuaTeX 0.66 from TLContrib on top of TeXLive 2010.
The following minimal test file for LuaLaTeX crashes with a segmentation 
fault:

\documentclass{minimal}
%\tracingall
\usepackage{graphicx}
\begin{document}
\end{document}

Console output:

This is LuaTeX, Version beta-0.66.0-2011041219
  restricted \write18 enabled.
(./test-uni.tex
LaTeX2e <2009/09/24>
LuaTeX adaptation of babel <v3.8l-luatex-1.4> and hyphenation patterns 
for english, dumylang, nohyphenation, loaded.
(/opt/texlive/2010/texmf-dist/tex/latex/base/minimal.cls
Document Class: minimal 2001/05/25 Standard LaTeX minimal class
) (/opt/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty
(/opt/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/opt/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty
(/opt/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty)
(/opt/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(/opt/texlive/2010/texmf-dist/tex/latex/pdftex-def/pdftex.def
(/opt/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/opt/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/opt/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/opt/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(Continue reading)

Philipp Stephani | 17 Apr 2011 22:06
Picon
Favicon

Re: [luatex] LuaTeX 0.66 segfaults when loading graphicx in LuaLaTeX


Am 17.04.2011 um 21:42 schrieb luigi scarso:

>> (/opt/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
> Isn't strange that a context mkii file is used with luatex ?

No, LaTeX has been using ConTeXt code for quite a while: in this case, to support MPS graphics files. Another
example is LuaOTFLoad which uses ConTeXt's font loading code.

This segfault is probably the same problem as here:
http://tug.org/pipermail/tex-live/2011-April/028862.html

Heiko Oberdiek | 17 Apr 2011 23:01

Re: LuaTeX 0.66 segfaults when loading graphicx in LuaLaTeX

On Sun, Apr 17, 2011 at 10:02:06PM +0200, Martin Schröder wrote:

> 2011/4/17 Ulrik Vieth <ulrik.vieth@...>:
> > I am using LuaTeX 0.66 from TLContrib on top of TeXLive 2010.
> > The following minimal test file for LuaLaTeX crashes with a segmentation
> > fault:
> 
> Bug introduced in 0.66, 

Earlier, but unclear when exactly.

> "fixed in next beta".

0.70.0, revision 4167.

Also I have changed pdftexcmds. Version 2011/04/16 v0.15
lets \pdf <at> shellescape undefined for LuaTeX prior to 0.70.0
in order to avoid the segmentation fault.

In theory it should be on CTAN today. Perhaps tomorrow,
it's not in my hands.
  For the impatient: ftp://ftp.tug.org/tex/oberdiek/oberdiek.tds.zip

Yours sincerely
  Heiko Oberdiek

luigi scarso | 18 Apr 2011 03:16
Picon

Re: [luatex] LuaTeX 0.66 segfaults when loading graphicx in LuaLaTeX

On Sun, Apr 17, 2011 at 9:51 PM, Reinhard Kotucha
<reinhard.kotucha@...> wrote:
> On 2011-04-17 at 21:42:27 +0200, luigi scarso wrote:
>
>  > On Sun, Apr 17, 2011 at 9:39 PM, Ulrik Vieth <ulrik.vieth <at> arcor.de> wrote:
>  > > I am using LuaTeX 0.66 from TLContrib on top of TeXLive 2010.
>  > > The following minimal test file for LuaLaTeX crashes with a segmentation
>  > > fault:
>  > >
>  > > \documentclass{minimal}
>  > > %\tracingall
>  > > \usepackage{graphicx}
>  > > \begin{document}
>  > > \end{document}
>  > >
>  > > Console output:
>  > >
>  > > This is LuaTeX, Version beta-0.66.0-2011041219
>  > >  restricted \write18 enabled.
>  > > (./test-uni.tex
>  > > LaTeX2e <2009/09/24>
>  > > LuaTeX adaptation of babel <v3.8l-luatex-1.4> and hyphenation patterns for
>  > > english, dumylang, nohyphenation, loaded.
>  > > (/opt/texlive/2010/texmf-dist/tex/latex/base/minimal.cls
>  > > Document Class: minimal 2001/05/25 Standard LaTeX minimal class
>  > > ) (/opt/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty
>  > > (/opt/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
>  > > (/opt/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty
>  > > (/opt/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty)
>  > > (/opt/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(Continue reading)


Gmane