1. 26 7月, 2021 4 次提交
  2. 13 7月, 2021 1 次提交
  3. 12 7月, 2021 11 次提交
  4. 10 7月, 2021 4 次提交
  5. 09 7月, 2021 3 次提交
  6. 08 7月, 2021 8 次提交
  7. 07 7月, 2021 9 次提交
    • F
      stb_truetype: Add protoype for stbtt_FindSVGDoc · 315e979f
      Fabian Giesen 提交于
      Fixes issue #979.
      315e979f
    • F
      stb_c_lexer: Move token enum defn to header portion · 8af4d409
      Fabian Giesen 提交于
      Required some tinkering, hope I didn't mess the logic up.
      
      This now requires the config section to be set for the header
      file, and different sites that include it should agree on what
      the values are. This is kind of iffy but hard to avoid.
      
      Fixes issue #647.
      8af4d409
    • F
      stb_truetype: Change spelling of fallthrough comment · afc9c16b
      Fabian Giesen 提交于
      To pacify GCC warnings at -Wimplicit-fallthrough=4. Why the
      all-caps version works and the others don't, I'm not sure; the
      GCC manual page lists regular expressions that GCC is checking for
      but does not say which regular expression syntax variant it's using,
      whether it's looking for a substring match or a full match for
      the comment, and what exactly the text being matched against is
      for a single-line comment. Sigh.
      
      Fixes issue #507.
      afc9c16b
    • F
      stb_sprintf: PUBLICDEC on declarations, as intended · 46c259ff
      Fabian Giesen 提交于
      The code was using PUBLICDEF on both declarations and
      definitions.
      
      Fixes issue #458.
      46c259ff
    • F
      stb_truetype: GPOS handling formatting changes · 9fe3b4bb
      Fabian Giesen 提交于
      Was using 4-character spaces and otherwise formatted unlike the
      rest of the code, fix this. Also get rid of the outer switch in
      GetGlyphGPOSInfoAdvance with just one case; just use an if.
      No behavioral changes.
      9fe3b4bb
    • F
      stb_truetype: GPOS parsing fixes · 1252a3e6
      Fabian Giesen 提交于
      Glyphs not assigned a glyph class should default to class 0 as
      per the OpenType spec. Also, change the code to treat malformed
      data as an error to be handled, not an assert, and change the
      way the version checking works.
      
      Fixes the issue mentioned in PR #1035. Also, this part of the
      code is indented incorrectly; will fix that in a subsequent
      commit.
      1252a3e6
    • F
      stb_truetype: GCC warning fix · e5905054
      Fabian Giesen 提交于
      GCC warns about a potentially uninitialized variable here. It's
      not (or at least I don't see how), but fix it anyway.
      e5905054
    • A
      Store uncompressed if compression was worse · db6e91b7
      Andrew Kensler 提交于
      If the data was uncompressible and this deflate implementation expanded
      by more than the overhead of simply storing it uncompressed, fall back
      to deflate's uncompressed storage mode.  This bounds the maximum deflated
      size at the original size plus an overhead of 6 fixed bytes with another
      5 bytes per 32767 byte block.
      
      Fixes issue #948.
      db6e91b7
    • F
      stb_image_resize: Remove ill-advised asserts. · 14c224c8
      Fabian Giesen 提交于
      These mostly add very little and have caused problems for people,
      nor does it make sense to require this when the underlying
      computations are performed in floating-point arithmetic depending
      on ratios of user-passed in image dimensions.
      
      Arbitrary absolute epsilons here would just be garbage; we could
      try and compute desired relative error bounds based on the
      determined scale values, but this still leaves the questions of
      what purpose this would even serve, which is unclear.
      
      Leave the filter kernel asserts as comment for documentation
      of what the behavior would be with exact math, but don't actually
      bother asserting here.
      
      Fixes issue #736.
      14c224c8