Is there a utility based access (ideally from a linux cmd line app) to query what sequence of glyphs (perhaps by unicode code point) are available within an otf or ttf font file please? I''m currently ''guessing'' and although it''s working mostly it falls flat on it''s face on occasion for those fonts which are non-Western, or are ligatures etc. TIA -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
On Thu, Dec 29, 2011 at 5:53 PM, Dave Pawson <dave.pawson at gmail.com> wrote:> Is there a utility based access (ideally from a linux cmd line app) to > query what > sequence of glyphs (perhaps by unicode code point) are available > within an otf or ttf font file please?There is a nice tool from fontforge to print all the glyphs of a TTF font to a PDF in a nice table layout. Package required: fontforge-extras command: showglyphs fontname.ttf You will get fontname.pdf (typeset using TeX) Thanks Santhosh
On Thu, Dec 29, 2011 at 5:55 PM, Santhosh Thottingal <santhosh.thottingal at gmail.com> wrote:> On Thu, Dec 29, 2011 at 5:53 PM, Dave Pawson <dave.pawson at gmail.com> wrote: >> Is there a utility based access (ideally from a linux cmd line app) to >> query what >> sequence of glyphs (perhaps by unicode code point) are available >> within an otf or ttf font file please?There is another tool named ftview from freetype2-demos for the same purpose. -Santhosh
On 29 December 2011 12:27, Santhosh Thottingal <santhosh.thottingal at gmail.com> wrote:> On Thu, Dec 29, 2011 at 5:55 PM, Santhosh Thottingal > <santhosh.thottingal at gmail.com> wrote: >> On Thu, Dec 29, 2011 at 5:53 PM, Dave Pawson <dave.pawson at gmail.com> wrote: >>> Is there a utility based access (ideally from a linux cmd line app) to >>> query what >>> sequence of glyphs (perhaps by unicode code point) are available >>> within an otf or ttf font file please? > > > There is another tool named ftview from freetype2-demos for the same purpose.Thanks for that.... About where I was going, except i wanted them all in one PDF? So that when I go to choose a font I can compare them (and also configure the PDF tool to have access to them). I''ll take a look, see if I can figure out some sort of merge. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk
I *think* I need to interpret the matrix returned by fc-query -i index GFSBodoni.otf which is of the form 0001: ffffffff feffffff ffffffff ffffffff 00040000 00818003 00000000 fc300000 Guessing this translates to a point by prefixing the column 1 last eight bits with the column n bits... E.g. for the above (second row) 1 1111 1111 1111 1111 1111 1111 1111 1111 So where there is a 1, the glyph at code point x is present, where there is a 0, the glyph is not present. Yet to find confirmatory documentation for this? If ea row has 32 * 8 = 256 chars per line? I can interpret that as presenting 64K chars per font? Is my logic sound please? I think I can work out something to translate that. regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk