From: Khaled H. <kha...@eg...> - 2012-09-29 10:38:57
|
On Sat, Sep 29, 2012 at 11:52:33AM +0530, pra...@gm... wrote: > Hi, > > I have downloaded https://googlefontdirectory.googlecode.com/hg/ofl/cousine/ > Cousine-Regular.ttf and saved as .sfd and regenerated ttf from it. But > regenerated font does not get recognized as a Monospace in Windows http:// > www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty.exe > While the original downloaded font get recognized there properly. > > What might be going wrong while saving it as .sfd and regenerating .ttf? > > Regenerated font http://pravins.fedorapeople.org/Test-Cousine.ttf The original font has the isFixedPitch bit in post table set which it seems used by some application to recognise monospace fonts (though this, arguably, is wrong, there is no requirement that all monnospace fonts set it). Per the spec, isFixedPitch is only set when all glyphs in the font have the same width, but the font has a zero width ".null" glyph, so FontForge does not set isFixedPitch when generating the font (which is the right thing to do, some applications is know to behave wrongly with such a font). Removing that glyph (which seems to serve no purpose and was probably auto inserted by the tool generating the font), should do the trick. Regards, Khaled |