1. 09 6月, 2017 1 次提交
  2. 29 4月, 2017 1 次提交
    • N
      Allow multiple kern subtables. · bcfeb16b
      Nigel Tao 提交于
      We still only use the first subtable, but we no longer fail if there's
      more than one subtable.
      
      Updates fogleman/gg#7
      bcfeb16b
  3. 20 4月, 2017 1 次提交
    • N
      Support Unicode Full Repertoire cmap tables. · b12e9810
      Nigel Tao 提交于
      For example, "Apple Color Emoji.ttc" has such a cmap. After this commit,
      we can render its glyph for "U+0001F1E6 REGIONAL INDICATOR SYMBOL LETTER
      A", which is clearly outside the Unicode BMP.
      
      Note that this only lets us render black-and-white glyphs for out-of-BMP
      runes. Rendering color glyphs (i.e. emoji) remains TODO.
      
      Updates #45
      b12e9810
  4. 08 4月, 2017 1 次提交
  5. 07 4月, 2017 1 次提交
  6. 08 12月, 2016 1 次提交
  7. 26 6月, 2016 1 次提交
  8. 19 5月, 2016 1 次提交
  9. 10 4月, 2016 1 次提交
  10. 24 3月, 2016 1 次提交
  11. 21 2月, 2016 1 次提交
  12. 19 2月, 2016 2 次提交
  13. 18 2月, 2016 1 次提交
  14. 29 1月, 2016 2 次提交
  15. 29 11月, 2015 1 次提交
  16. 24 9月, 2015 1 次提交
  17. 21 9月, 2015 3 次提交
  18. 01 9月, 2015 1 次提交
  19. 31 8月, 2015 2 次提交
  20. 30 8月, 2015 4 次提交
    • N
      Make raster.Painter's max alpha 1<<16-1, not 1<<32-1. · 8a442816
      Nigel Tao 提交于
      This is more consistent with the standard library's image/color package.
      
      The benchmarks didn't seem to change significantly.
      8a442816
    • N
      Rename Point and End slices to Points and Ends. · 3ba1c0f7
      Nigel Tao 提交于
      The slice Foos is plural; it refers to multiple elements. The element Foos[i]
      is the i'th Foo.
      3ba1c0f7
    • N
      Use fixed.Rectangle26_6 instead of truetype.Bounds. · 3cc74868
      Nigel Tao 提交于
      The previous "the endpoints are inclusive" comment seems confusing. It's true
      that the bounding box's max X equals the right-most coordinate, which suggests
      <= instead of <, but that node's coordinate is itself exclusive. Consider the
      solid 1-pixel square: (0, 0), (64, 0), (64, 64), (0, 64) in fixed.Point26_6
      coordinates. The right-most coordinate is 64, and the bounding box's max X
      equals 64, but rasterizing that square only affects sub-pixels up to but not
      including 64.
      
      Instead, it seems accurate to follow the fixed.Rectangle26_6 description, in
      that the max values are exclusive.
      3cc74868
    • N
      Delete the truetype.NewGlyphBuf function. · 7a598da6
      Nigel Tao 提交于
      The zero value of a GlyphBuf is already perfectly usable.
      7a598da6
  21. 27 8月, 2015 1 次提交
    • N
      Cache glyph mask images. · fe260676
      Nigel Tao 提交于
      benchmark                 old ns/op     new ns/op     delta
      BenchmarkDrawString-4     88103151      14188817      -83.90%
      fe260676
  22. 25 8月, 2015 1 次提交
    • N
      Quantize sub-pixel glyph rendering. · 62e59645
      Nigel Tao 提交于
      This is in anticipation of caching glyph images. Quantization means that cache
      hits are more likely.
      
      Also make NewFace take an *Options instead of an Options.
      62e59645
  23. 24 8月, 2015 3 次提交
  24. 23 8月, 2015 2 次提交
  25. 22 8月, 2015 2 次提交
    • N
      Fix some comment typos. · d8618774
      Nigel Tao 提交于
      These comments weren't updated when we went from 24.8 to 26.6.
      d8618774
    • N
      Add a truetype.Face type. · 6deea241
      Nigel Tao 提交于
      Its implementation is mostly a copy/paste of the freetype.Context type.
      Follow-up commits will make it more efficient.
      
      Also add an example that uses a truetype.Face and the
      golang.org/x/exp/shiny/font package to draw text.
      6deea241
  26. 21 8月, 2015 1 次提交
  27. 20 8月, 2015 2 次提交