From: Drew G. <dot...@gm...> - 2005-09-14 23:46:22
|
Thanks, I will give it a shot! BTW If I understand correctly (not necessarily a safe bet), I think that IM uses Ghostscript to render text... drew On 14 Sep 2005 11:49:09 -0700, George Williams <gw...@si...> wrote: > On Tue, 2005-09-13 at 10:27, Drew Gilmore wrote: > > There's a particular font ("Cosmos") I need to use with ImageMagick. > > Problem is that the tops of the dots on the lower case i and j > > characters rise above the top of all the capital letters. (Sorry I > > don't know all the font metric terminology yet...) > > > > When ImageMagick renders those two characters, it shaves off the top > > of the dots! I'm wondering if there's a quick way to alter the font in > > FontForge - say, by raising the height of the font - so that this > > doesn't happen. > Hmm. I don't know what image magick uses to display fonts. >=20 > My first impression is that it is unlikely the font itself contains a > bad clipping rectangle, but if it does you can adjust it with fontforge. > Unfortunately there are two fields that may need to be modified (one for > windows, one for the mac, and god knows which linux will pick). >=20 > You need a version of fontforge at least as recent as 4-Sept-2005 (the > current distribution will do) to set both: > Element->Font Info->OS/2->Metrics > Set Win Ascent Offset to a number >=3D0 and set the > checkbox [*] Is Offset. > Do the same for HHead Ascent Offset >=20 > Another possibility is that ImageMagick incorrectly clips all fonts to > some standard ascent/descent it has built in to it. > There are various things you could try to fix this: > 1) Change the font's Typo Ascent Offset (same dlg) to be bigger > 2) Displace the font downwards so that we lie about the baseline > and it has a larger effective ascent > Edit->Select->Select All > Element->Transforms->Transform > Select Move > Set Y to be a negative number (maybe -100? maybe more) > 3) Make the font's glyphs take up a smaller portion of the > em-square > Edit->Select->Select All > Element->Transforms->Transform > Select Scale Uniformly > Set the percentage to ?90%? >=20 > (I can't give good values for the Transform dlg, because they will > depend on the font in question). >=20 > I don't really have very high hopes that any of these will actually > work, because I can only guess at what is causing the problem. >=20 > |