|
From: Jason P. <zi...@gm...> - 2013-04-26 22:47:17
|
Something I've had on my personal wish-list is to be able to subset fonts using a pseudo-encoding based on real language requirements rather than or in addition to legacy system support, or several of both at the same time. I'm not entirely sure what you're all talking about here is the same thing that I have in my mind. Just wanted to put it out there. On Fri, Apr 26, 2013 at 2:21 PM, James Cloos <cl...@jh...> wrote: > >>>>> "AT" == Aaron Turner <aar...@ma...> writes: > > AT> I have a large number of fonts (all downloaded from "copyleft" sources > AT> such as Google fonts, SIL, etc) and I wish to use Fontforge/Python to > AT> generate specific Unicode subsets of these fonts, for WOFF / @font-face > AT> purposes. > > I'd take a look at cairo's code for subsetting. Perhaps also pdftex > and/or luatex. > > Of course, there are some table those projects do not need to emit which > you will need to, so they can only be a starting point. > > The problem boils down to creating a graph of how each entry of each > table interacts, weeding out what you do not want, and saving the rest. > > After forming the graph, mark each needed node starting with the char- > acters you want, and recusively drilling down a la find(1) to every node > which those nodes depend on (glyphs, GPOS, GSUB, et al). > > As the tables shrink, the IDs and offsets of their contents change; you > have to keep track of those changes. You might find some ideas for this > step from tree-based filesystems like btrfs and tux3. Even if you use > fontforge (or libfontforge) to do everything to ff's sfd representation, > I suspect you'll still need to keep track of renumbering once you know > what you want to keep and elide. > > -JimC > -- > James Cloos <cl...@jh...> OpenPGP: 1024D/ED7DAEA6 > > > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr > _______________________________________________ > Fontforge-users mailing list > Fon...@li... > https://lists.sourceforge.net/lists/listinfo/fontforge-users > -- -- Jason Pagura zimbach at gmail dot com |