1. 10 3月, 2022 1 次提交
  2. 21 12月, 2021 1 次提交
  3. 05 11月, 2021 1 次提交
  4. 11 3月, 2021 1 次提交
  5. 09 9月, 2020 1 次提交
  6. 20 8月, 2019 1 次提交
  7. 08 5月, 2019 1 次提交
  8. 01 5月, 2019 1 次提交
  9. 22 1月, 2019 1 次提交
  10. 18 1月, 2019 1 次提交
  11. 15 1月, 2019 1 次提交
    • T
      Remove assumption about Core Text working in 96 DPI · f401f85a
      Tor Arne Vestbø 提交于
      Core Text doesn't actually have a concept of DPI internally, as it
      doesn't rasterize anything by itself, it just generates vector paths
      that get passed along to Core Graphics.
      
      In practice this means Core Text operates in the classical macOS
      logical DPI of 72, with one typographic point corresponding to one
      point in the Core Graphics coordinate system, which for a normal
      bitmap context then corresponds to one pixel -- or two pixels for
      a "retina" context with a 2x scale transform.
      
      Scaling the font point sizes given to HarfBuzz to an assumed DPI
      of 96 is problematic with this in mind, as fonts with optical
      features such as 'trak' tables for tracking, or color glyphs,
      will then base the metrics off of the wrong point size compared
      to what the client asked for.
      
      This in turn causes mismatches between the metrics of the shaped
      text and the actual rasterization, which doesn't include the 72
      to 96 DPI scaling.
      
      If a 96 DPI is needed, such as on the Web, the scaling should be
      done outside of HarfBuzz, allowing the client to keep the DPI of
      the shaping in sync with the rasterization.
      
      The recommended way to do that is by scaling the font point size,
      not by applying a transform to the target Core Graphics context,
      to let Core Text choose the right optical features of the target
      point size, as described in WWDC 2015 session 804:
      
        https://developer.apple.com/videos/play/wwdc2015/804/
      f401f85a
  12. 18 12月, 2018 1 次提交
  13. 17 12月, 2018 1 次提交
  14. 12 12月, 2018 1 次提交
  15. 30 11月, 2018 1 次提交
  16. 24 11月, 2018 1 次提交
  17. 17 11月, 2018 1 次提交
  18. 11 11月, 2018 1 次提交
  19. 09 11月, 2018 1 次提交
  20. 02 11月, 2018 1 次提交
  21. 23 10月, 2018 4 次提交
  22. 20 10月, 2018 1 次提交
  23. 18 10月, 2018 1 次提交
  24. 11 10月, 2018 7 次提交
  25. 16 9月, 2018 1 次提交
    • B
      Disallow null-enabled offsets to unsized structures... · 10642b3f
      Behdad Esfahbod 提交于
      ...like UnsizedArrayOf<>.
      
      This fixes a class of crasher bugs, mostly with color and AAT tables.  We
      cannot use nullable offsets to varsized data that does not declare min_size,
      because it's nost safe to use our fixed-size null pool for types that have
      their size external.  So, use non_null'able offsets for these.
      
      A further enhancement would be to make use of min_size in Null<> itself.
      Will try that after.
      10642b3f
  26. 26 8月, 2018 1 次提交
  27. 01 7月, 2018 1 次提交
  28. 24 4月, 2018 1 次提交
  29. 18 4月, 2018 1 次提交
  30. 17 4月, 2018 1 次提交
  31. 12 4月, 2018 1 次提交