Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 0da03bb1805d73f1aaf1c06fe3cffe2f > files > 195

fontforge-1.0-1.20120731.9.mga5.x86_64.rpm

<HTML>
<HEAD>
  <!-- Created with AOLpress/2.0 -->
  <!-- AP: Created on: 13-Jul-2009 -->
  <!-- AP: Last modified: 13-Jul-2009 -->
  <TITLE>Please title this page. (SuggestDeltas.html in FontForge)</TITLE>
  <LINK REL="icon" href="fftype16.png">
  <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<P>
After you have generated truetype instructions to grid fit a glyph it might
to useful to look at places where those instructions yield questionable results.
In truetype a pixel is turned on if the center point of that pixel is within
the curve. If the curve is extremely close to the center point then results
are questionable
<OL>
  <LI>
    You might want it on the other side
  <LI>
    Another rasterizer might round things differently and place the curve on
    the wrong side.
</OL>
<P>
<IMG SRC="QGDlg.png" WIDTH="356" HEIGHT="280" ALIGN="Right">So it might be
helpful to have a command which would search the glyph for places and pixelsizes
where splines are close to the center points of pixels.
<P>
TrueType has an instruction called DELTA which allows you to move points
only at certain pixelsizes.
<P>
The dialog opposite will check the glyph at pointsizes 7-40, 72, 80, ...
where the screen resolution is 100 for places where a spline comes within
.01 (in pixel units) of the center of a pixel.
<P>
<IMG SRC="QGList.png" WIDTH="441" HEIGHT="376" ALIGN="Left">The results will
look like those at right. Clicking on an entry will toggle whether that entry
is open (and its children visible) or not.
<P>
<IMG SRC="JustOutside.png" WIDTH="132" HEIGHT="210" ALIGN="Right">If you
click on one of the bottom level entries then fontforge will open a glyph
view on that glyph, rasterize it at the current pointsize and resolution,
and indicate the offending pixel by drawing a red box around it. As you can
see, the pixel center point lies almost exactly on the spline. The closest
real point is the control point #8.
<P>
It is possible to reorder the list... depending on what is most important.
At right data are organized by glyph, size and point. It might also be useful
to see which points in a glyph are close to problems.
<P>
</BODY></HTML>