Re: [XeTeX] protrusion for small caps

2010-05-20 Thread Jonathan Kew
On 19 May 2010, at 19:47, Robert wrote: > On 18.05.10 10:55, Jonathan Kew wrote: >> \font\f="MyFont" at 10pt \f >> \newcount\n >> \loop \noindent \number\n : \XeTeXglyph\n\ = \XeTeXglyphname\f\n \par >> \advance\n by 1 \ifnum\n<\XeTeXcountglyphs\f \repeat > > Thanks, this may be helpful

Re: [XeTeX] protrusion for small caps

2010-05-19 Thread Robert
On 18.05.10 10:55, Jonathan Kew wrote: \font\f="MyFont" at 10pt \f \newcount\n \loop \noindent \number\n : \XeTeXglyph\n\ = \XeTeXglyphname\f\n \par \advance\n by 1 \ifnum\n<\XeTeXcountglyphs\f \repeat Thanks, this may be helpful (and I've learned two new primitives...) Now I see

Re: [XeTeX] protrusion for small caps

2010-05-18 Thread Peter Dyballa
Am 18.05.2010 um 01:06 schrieb Robert: Is there a simple way to find out these glyph names? Dump them! Apple offers the Font Tools suite from it's developers site (via ftxdumperfuser, creates an XML file), FontForge might be able to perform similarly. Python and Perl also have modules to

Re: [XeTeX] protrusion for small caps

2010-05-18 Thread Jonathan Kew
On 18 May 2010, at 00:06, Robert wrote: > On 18.05.10 00:37, Jonathan Kew wrote: >> \lpcode \x /w.SC = 500 > > Thanks, this works. However, the naming scheme doesn't seem to be generic but > is font-specific, right? Yes. > It doesn't work for Minion Pro or Brioso Pro, for example. Is there

Re: [XeTeX] protrusion for small caps

2010-05-18 Thread Robert
On 18.05.10 00:37, Jonathan Kew wrote: \lpcode \x /w.SC = 500 Thanks, this works. However, the naming scheme doesn't seem to be generic but is font-specific, right? It doesn't work for Minion Pro or Brioso Pro, for example. Is there a simple way to find out these glyph names? (The reaso

Re: [XeTeX] protrusion for small caps

2010-05-17 Thread Jonathan Kew
On 17 May 2010, at 19:15, Robert wrote: > Hi, > > I'm having problems with setting protrusion values for small caps. The > following does not give the desired result. Any hints? > > \font\x ="Charis SIL:+smcp" \x > \hsize=11em > \parindent=0pt > \XeTeXprotrudechars2 > \lpcode\x U`W = 500 % this

[XeTeX] protrusion for small caps

2010-05-17 Thread Robert
Hi, I'm having problems with setting protrusion values for small caps. The following does not give the desired result. Any hints? \font\x ="Charis SIL:+smcp" \x \hsize=11em \parindent=0pt \XeTeXprotrudechars2 \lpcode\x U`W = 500 % this works fine, % but neither of the following does: \lpcode\x