1. 22 4月, 2011 1 次提交
    • B
      [API] Allow negative font x_scale/y_scale · da975419
      Behdad Esfahbod 提交于
      I was reconsidering whether y should grow down, since all three/four
      times I've used this API I was tricked and got that wrong in my use.
      So I was very inclined to make y grow down instead of up.  However,
      considering that the font space has y up and it would be very confusing
      for callbacks to work against that, I decided that what I really want
      is for the user to be able to set y_scale to a negative number to imply
      that user-space y grows down.
      
      Changing x_scale/y_scale from unsigned int to int allows that, and I've
      made pango to use that instead of negating glyph y_offset later.  hb-ft
      however still has y group up.  I *guess* that's how FreeType works?
      I'm not sure, FreeType docs don't make this clear...
      
      I'm happy with the resolution :-).
      da975419
  2. 21 4月, 2011 2 次提交
  3. 20 4月, 2011 1 次提交
  4. 18 12月, 2010 1 次提交
  5. 27 10月, 2010 1 次提交
  6. 05 10月, 2010 4 次提交
  7. 23 9月, 2010 1 次提交
  8. 24 7月, 2010 1 次提交
  9. 21 5月, 2010 1 次提交
  10. 20 5月, 2010 1 次提交
    • B
      Fix scale issues · 0a4399ca
      Behdad Esfahbod 提交于
      hb_font_set_scale() now sets the value to be used to represent a unit
      pixel.  For example, if rendering a 10px font with a 26.6 representation,
      you would set scale to (10 << 6).  For 10px in 16.16 you would set it to
      (10 << 16).  This space should be the same space that the get_glyph_metrics
      and get_kerning callbacks work in.
      0a4399ca
  11. 22 4月, 2010 1 次提交
  12. 06 11月, 2009 2 次提交
  13. 05 11月, 2009 1 次提交
  14. 04 11月, 2009 3 次提交
  15. 03 11月, 2009 12 次提交