|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Script to move each glyphHi,
I want to move any glyph in a font to align lowest point in each glyph on y=0 coordinate. Is it possible by existing menus dialog ? Is it possible by script ? Thanks in advance for any help. PS : the target font is a hieroglyphic font with several thousands of glyphs. |
|
|
|
|
|
Re: Script to move each glyphChristian Roy <christian.roy@...> skribis:
> Where is located documentation for this boundingBox function ? http://fontforge.sourceforge.net/python.html ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Fontforge-users mailing list Fontforge-users@... https://lists.sourceforge.net/lists/listinfo/fontforge-users |
|
|
Fwd: Script to move each glyphPlease find below the script corresponding to my need :
import fontforge; import psMat; fontforge.open( "Bernhardt-EGPZB11.ttf" ); font = fontforge.activeFont() font.selection.all( ); for glyph in font.selection.byGlyphs: bbox = glyph.boundingBox( ); if bbox[1] < 0 : mat = psMat.translate( 0,-bbox[1] ); glyph.transform( mat ); font.generate( "Bernhardt-EGPZB11.ttf" ); Thanks for your help. Début du message réexpédié :
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Fontforge-users mailing list Fontforge-users@... https://lists.sourceforge.net/lists/listinfo/fontforge-users |
|
|
Re: Fwd: Script to move each glyphOn Thu, Oct 08, 2009 at 01:49:04PM +0200, Christian Roy wrote:
> Please find below the script corresponding to my need : > > import fontforge; > import psMat; > > fontforge.open( "Bernhardt-EGPZB11.ttf" ); > font = fontforge.activeFont() > font.selection.all( ); > for glyph in font.selection.byGlyphs: The last two lines can be shortened to: for glyph in font.glyphs(): Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Fontforge-users mailing list Fontforge-users@... https://lists.sourceforge.net/lists/listinfo/fontforge-users |
| Free embeddable forum powered by Nabble | Forum Help |