1. 17 Jul, 2012 1 commit
    • Raph Levien's avatar
      Accurately calculate advances in general case. Fixes bug 6833339. · b4fad178
      Raph Levien authored
      The advance values computed by generateAdvance() were inconsistent with
      those computed by generateMetrics, because the fMatrix22 was being
      applied in the latter but not former case. Since fMatrix22.xx is 1.0
      almost all the time (the exception is only when skew and scale are both
      applied), failures were rare.
      
      This patch is an alternative to ag/#/c/207887, in that they both fix the
      problem, but in different ways. That patch made fMatrix22.xx equal to
      1.0 in almost all cases, while this one gives correct advance values
      for arbitrary fMatrix22 values.
      
      Change-Id: Iedfa36e884e3e3e2f078a5d4edfc82004a54e895
      b4fad178
  2. 09 Jul, 2012 1 commit
    • Billy Hewlett's avatar
      Cleanup ref counts for SkCreateTypefaceForScript · 669f287c
      Billy Hewlett authored
      After this checkin, SkCreateTypefaceForScript refs each typeface
      that it creates before it returns it.  Additionally, all supported harfbuzz
      codepoints are added to the unicode mapping array.  This patch also fixes a test crash (see bug)
      
      Bug:6756432
      
      Change-Id: Ida3276b76e745b817f9e63be54945e411516dd03
      669f287c
  3. 21 Jun, 2012 9 commits
  4. 19 Jun, 2012 2 commits
  5. 14 Jun, 2012 3 commits
  6. 13 Jun, 2012 2 commits
    • Victoria Lease's avatar
      DO NOT MERGE Skia solution to fake-bold fallback fonts. · ec1ad08b
      Victoria Lease authored
      This version of the fake-bold-for-fallback-fonts fix addresses the
      issue succinctly inside of Skia, with no need for Skia's clients to
      be aware of the issue. Attempts to draw a bold parent font flag the
      embolden flag in the associated SkScalerContext while leaving the
      SkPaint's fake bold flag unmodified.
      
      This depends upon change Icdd13f6b, which arranges for FreeType's
      FontHost to ignore redundant embolden requests.
      
      This is a cherry-pick of change I4132a232 from master.
      
      Bug: 6629786
      Change-Id: I389d6793e5472d664f6ac7b894927dbfd811be12
      ec1ad08b
    • Victoria Lease's avatar
      Skia solution to fake-bold fallback fonts. · 79bf5128
      Victoria Lease authored
      This version of the fake-bold-for-fallback-fonts fix addresses the
      issue succinctly inside of Skia, with no need for Skia's clients to
      be aware of the issue. Attempts to draw a bold parent font flag the
      embolden flag in the associated SkScalerContext while leaving the
      SkPaint's fake bold flag unmodified.
      
      This depends upon change Icdd13f6b, which arranges for FreeType's
      FontHost to ignore redundant embolden requests.
      
      Bug: 6629786
      Change-Id: I4132a232896f72f632caefd79add2f00c36a578a
      79bf5128
  7. 08 Jun, 2012 2 commits
  8. 07 Jun, 2012 7 commits
  9. 06 Jun, 2012 1 commit
  10. 05 Jun, 2012 3 commits
  11. 31 May, 2012 1 commit
    • Victoria Lease's avatar
      Use FreeType's "embolden", but only if face is not already bold. · bd64a4dd
      Victoria Lease authored
      A side-effect of not knowing the actual SkTypeface used to draw text
      until render-time is that we cannot make decisions based upon the
      face's proper font metrics. As a result, attempts to draw bold text
      will fail when a fallback font with normal weight is selected. With
      this, we can feel free to enable fake bold mode even if the primary
      font is bold, as the extraneous fake bold bit will just get ignored
      at render-time if the actual font used to draw the text is bold.
      
      Bug: 6522642
      Change-Id: Icdd13f6bd36a85ba374b6ed7a08b596d4c31e86f
      bd64a4dd
  12. 30 May, 2012 6 commits
  13. 29 May, 2012 1 commit
  14. 24 May, 2012 1 commit