1. 04 Jul, 2018 1 commit
  2. 03 Jul, 2018 4 commits
    • Behdad Esfahbod's avatar
      [indic] Adjust left-matra repositioning and Halant,ZWJ sequence · 9940504e
      Behdad Esfahbod authored
      From the new code (first paragraph is from the OT Devanagari spec.):
      
        /*   o Reorder matras:
         *
         *     If a pre-base matra character had been reordered before applying basic
         *     features, the glyph can be moved closer to the main consonant based on
         *     whether half-forms had been formed. Actual position for the matra is
         *     defined as “after last standalone halant glyph, after initial matra
         *     position and before the main consonant”. If ZWJ or ZWNJ follow this
         *     halant, position is moved after it.
         *
         * IMPLEMENTATION NOTES:
         *
         * It looks like the last sentence is wrong.  Testing, with Windows 7 Uniscribe
         * and Devanagari shows that the behavior is best described as:
         *
         * "If ZWJ follows this halant, matra is NOT repositioned after this halant.
         *  If ZWNJ follows this halant, position is moved after it."
         *
         * Test case, with Adobe Devanagari or Nirmala UI:
         *
         *   U+091F,U+094D,U+200C,U+092F,U+093F
         *   (Matra moves to the middle, after ZWNJ.)
         *
         *   U+091F,U+094D,U+200D,U+092F,U+093F
         *   (Matra does NOT move, stays to the left.)
      
      Fixes https://github.com/harfbuzz/harfbuzz/issues/1070
      
      Test case added with Adobe Devanagari.
      9940504e
    • Behdad Esfahbod's avatar
    • Behdad Esfahbod's avatar
      1.8.2 · 343e8c69
      Behdad Esfahbod authored
      343e8c69
    • Behdad Esfahbod's avatar
      Disable .dfont code for now · 29e7879b
      Behdad Esfahbod authored
      The get_table imple was wrong, as table offsets in a dfont are
      relative to the resource.  We were treating them as relative to
      the big blob itself.  To be fixed.
      
      Part of https://github.com/harfbuzz/harfbuzz/pull/1085
      29e7879b
  3. 01 Jul, 2018 2 commits
  4. 30 Jun, 2018 5 commits
  5. 28 Jun, 2018 2 commits
  6. 27 Jun, 2018 3 commits
  7. 26 Jun, 2018 3 commits
  8. 25 Jun, 2018 2 commits
  9. 24 Jun, 2018 1 commit
  10. 23 Jun, 2018 1 commit
    • Behdad Esfahbod's avatar
      In Coverage iterator, bail out if table smells · b2a18791
      Behdad Esfahbod authored
      In particular, if CoverageFormat2 has unsorted ranges, bail out.
      Otherwise, 64k ranges of each 64k glyphs can DoS closure() method.
      
      We can do the same for CoverageFormat1, but that one does not expose
      the quadratic behavior, so, fine.
      b2a18791
  11. 18 Jun, 2018 2 commits
  12. 17 Jun, 2018 2 commits
    • Ebrahim Byagowi's avatar
      Verbose fail when something is wrong with hb-shape/hb-view input font file (#1059) · c53697d3
      Ebrahim Byagowi authored
      This checks if the blob isn't empty and uses `hb_face_count`
      to see if the font file passes the simple font file sanitization
      so can detect if the input is actually a font and checks also
      whether input font-index is out of range.
      Unverified
      c53697d3
    • Ebrahim Byagowi's avatar
      Fix reading fonts from stdin (#1060) · aa0c5df4
      Ebrahim Byagowi authored
      We were passing the font path directly to freetype so rendering
      was broken when we are getting the font from stdin.
      
      This fixes it by using FT_New_Memory_Face instead.
      
      This fixes:
      * build/util/hb-view /dev/stdin text < font.ttf
      * build/util/hb-view - text < font.ttf
      * cat font.ttf | build/util/hb-view - text
      
      but doesn't work on
      * cat font.ttf | build/util/hb-view /dev/stdin text
      
      which I will try to fix separately.
      Unverified
      aa0c5df4
  13. 12 Jun, 2018 11 commits
  14. 10 Jun, 2018 1 commit