Re: [XeTeX] no small caps in GNU FreeSerif font?

2011-12-11 Thread Andy Lin
The small caps glyphs are definitely there, but they might only be
considered part of the IPA extension range, i.e. they are not intended
as small caps for general use. Which seems weird to me. But anyhow,
this is a case where a teckit mapping could solve your problem. Or you
could file a ticket with the developers.

I can't check the OT features on the font right now on this machine,
but if you run otfinfo, it should tell you if the smcp feature is
present in the font (although it's not a sure test, considering Charis
SIL had, for older versions, the smcp flag, but no actual
implementation).

-Andy


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] no small caps in GNU FreeSerif font?

2011-12-11 Thread Peter Baker

On Dec 11, 2011, at 4:07 AM, Daniel Greenhoe dgreen...@gmail.com wrote:

 By way of contrast, for Texgyre's Pagella, entering
  otffinfo -f texgyrepagella-regular.otf
 yields both the smcp (Small Capitals) and c2sc (Small Capitals From Capitals)
 (by the way, if smcp is available, why is c2sc necessary?)

smcp changes lowercase to small cap; c2sc does the same for uppercase.

 
 So, in conclusion, evidence would seem to indicate that small caps are
 not currently fully supported by GNU's FreeSerif typeface.
 
 Thank you for your help,
 Dan
 
 



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] no small caps in GNU FreeSerif font?

2011-12-11 Thread Daniel Greenhoe
On Sun, Dec 11, 2011 at 4:40 PM, Andy Lin kir...@gmail.com wrote:
 this is a case where a teckit mapping could solve your problem.

I did try making a teckit map (see attachments). However, I have some problems:
  1. small caps for q and x and are apparently not defined by the
Unicode standard.
  2. Using FontForge, I did not see small caps q or x in FreeSerif.otf.
  3. I did not find any small caps versions for capital letters in
FreeSerif or in the Unicode standard.
  4. Even in the TexGyre font Pagella-regular, which does support
small caps, I did not find any small caps using FontForge. For
example, the Unicode standard says that latin_letter_small_capital_a
should be at U+1D00. But in Pagella-regular, U+1D00 is empty. Where
are the small caps being hidden? Or are they algorithmically generated
from the Latin capital letters?

Dan

On Sun, Dec 11, 2011 at 4:40 PM, Andy Lin kir...@gmail.com wrote:
 The small caps glyphs are definitely there, but they might only be
 considered part of the IPA extension range, i.e. they are not intended
 as small caps for general use. Which seems weird to me. But anyhow,
 this is a case where a teckit mapping could solve your problem. Or you
 could file a ticket with the developers.

 I can't check the OT features on the font right now on this machine,
 but if you run otfinfo, it should tell you if the smcp feature is
 present in the font (although it's not a sure test, considering Charis
 SIL had, for older versions, the smcp flag, but no actual
 implementation).

 -Andy


 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


sc4gnufree.map
Description: Binary data


sc4gnufree.tec
Description: Binary data


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] no small caps in GNU FreeSerif font?

2011-12-11 Thread mskala
On Mon, 12 Dec 2011, Daniel Greenhoe wrote:
 should be at U+1D00. But in Pagella-regular, U+1D00 is empty. Where
 are the small caps being hidden? Or are they algorithmically generated
 from the Latin capital letters?

I think the officially correct way for an OpenType font to support small
caps is for them to be unencoded glyphs, with no Unicode code points
specified; then the smcp or similar feature will substitute them in
where appropriate.  If you have a font where they're unencoded, you're not
going to be able to access them just by mapping code points to code points
as teckit does.

Adobe formerly used private-use code points in the range F761 to F77A for
small cap glyphs.  If you happen to have a font that encodes the small cap
glyphs that way, you could get to them by mapping to those code points.
The current versions of my own Tsukurimashou fonts use the Adobe code
points for small caps because some of the build tools don't yet support
unencoded glyphs, but I'm probably going to change that in the future.

I think looking for small caps to have different code points is really the
wrong way to do it - and that's why Adobe no longer uses those code
points.  U+1D00 is *not* a with a small cap style applied; it is a
letter of the International Phonetic Alphabet.  If you mean the letter a
that we use in ordinary English, you should be writing U+0061; and the
question of whether it looks Roman, Italic, small cap, or Comic Sans,
should be determined by the font.

-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before principles.
http://ansuz.sooke.bc.ca/


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] no small caps in GNU FreeSerif font?

2011-12-11 Thread Steve White
Hi Daniel,

 I cannot get small caps when using the OpenType GNU FreeSerif
 (regular) typeface. But it is a little hard to believe that it is
 really not available. Can someone tell me what I am doing wrong? (see
 below code and/or attachments):

The 2010 release of FreeSerif does not contain tables or glyphs for small caps.
However, these were added the day after the 2010 release, and will be
present in the next release of
GNU FreeFont.

However, so far I'm the only one to have tested these features, and
I'm not sure how you mean to use them.
If you're interested, I can get you a snapshot, and you can debug it.
That would be very helpful!

Cheers!


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


[XeTeX] no small caps in GNU FreeSerif font?

2011-12-10 Thread Daniel Greenhoe
I cannot get small caps when using the OpenType GNU FreeSerif
(regular) typeface. But it is a little hard to believe that it is
really not available. Can someone tell me what I am doing wrong? (see
below code and/or attachments):

\documentclass[12pt]{book}
\usepackage{fontspec}
 \defaultfontfeatures{%
   SmallCapsFeatures = {Letters=SmallCaps},
   }
 \setmainfont[
   ExternalLocation,
   Path = {/xfonts/gnuFreeFont/},
   Extension= {.otf},
   UprightFont  = {*},
   BoldFont = {*Bold},
   ItalicFont   = {*Italic},
   BoldItalicFont   = {*BoldItalic},
  %SmallCapsFont= {../texgyre/texgyrepagella-regular},
   ]{FreeSerif}

 \newfontfamily{\fntFreeSerif}[
   ExternalLocation,
   Path   = {/xfonts/gnuFreeFont/},
   Extension  = {.otf},
   UprightFont= {*},
   BoldFont   = {*Bold},
   ItalicFont = {*Italic},
   BoldItalicFont = {*BoldItalic},
  %SmallCapsFont= {../texgyre/texgyrepagella-regular},
   ]{FreeSerif}

 \newfontfamily{\fntPagella}[
   Extension  = {.otf},
   ExternalLocation,
   Path   = {/xfonts/texgyre/},
   UprightFont= {*-regular},
   BoldFont   = {*-bold},
   ItalicFont = {*-italic},
   BoldItalicFont = {*-bolditalic},
   ]{texgyrepagella}

 \newfontfamily{\fntLibertineLR}[
   Extension  = {.otf},
   UprightFont= {*},
   BoldFont   = {*o},
   ItalicFont = {*i},
   BoldItalicFont = {*i},
   ]{fxlr}

 \newfontfamily{\fntCharisSIL}[
   ExternalLocation,
   Path   = {/xfonts/},
   Extension  = {.ttf},
   UprightFont= {*R},
   BoldFont   = {*B},
   ItalicFont = {*I},
   BoldItalicFont = {*BI},
   ]{CharisSIL}

 \newfontfamily{\fntHeuristica}[
   ExternalLocation,
   Path   = {/xfonts/heuristica/},
   Extension  = {.otf},
   UprightFont= {*-Regular},
   BoldFont   = {*-Bold},
   ItalicFont = {*-Italic},
   BoldItalicFont = {*-BoldItalic},
   Ligatures  = {NoCommon},
   ]{Heuristica}

\begin{document}%
\thispagestyle{empty}%
\begin{tabular}{ll}
  GNU FreeSerif:\fntFreeSerif   ABCabc \scshape ABCabc\\
  Pagella:  \fntPagella ABCabc \scshape ABCabc\\
  Libertine:\fntLibertineLR ABCabc \scshape ABCabc\\
  Charis:   \fntCharisSIL   ABCabc \scshape ABCabc\\
  Heuristica:   \fntHeuristica  ABCabc \scshape ABCabc\\
\end{tabular}
\end{document}%


scshape.tex
Description: TeX document


scshape.pdf
Description: Adobe PDF document


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex