<div dir="ltr"><div class="gmail_default" style="font-size:small">(Although also it looks from here like I should be using BitmapGlyphRec.left and BitmapGlyphRec.top, which I used to use until yesterday when I decided to use the bearings for consistency in using 26_6 numbers everywhere, and that seemed fine since these values are usually equal, but maybe they are not always equal and that was a dumb mistake and I should switch back to left,top explicitly.)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 23, 2015 at 8:35 PM, Jonathan Blow <span dir="ltr"><<a href="mailto:jon@number-none.com" target="_blank">jon@number-none.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><br>
</div></div>Offsets are adjustments accumulated during shaping, bearings are design<br>
glyph metrics. Instead of using metrics you should be using actual glyph<br>
box, CBox or BBox in freetype terms.</blockquote><div><br></div></span><div><div class="gmail_default" style="font-size:small;display:inline">I don't think either of these sentences is correct. The CBox contains non-visual elements such as non-interpolated spline control points, so if you use that, you end up wasting space. Referring once again to <a href="http://www.freetype.org/freetype2/docs/tutorial/step2.html" target="_blank">http://www.freetype.org/freetype2/docs/tutorial/step2.html</a> it says that the bearing is the distance from the cursor position to the edge of the actual image's bounding box. Note that this tutorial mentions calling Get_Bbox and explicitly says you probably don't want to do it. </div></div><div><div class="gmail_default" style="display:inline"></div> <br></div></div></div></div>
</blockquote></div><br></div>