Skip to content

v4.5.11

Compare
Choose a tag to compare
@galkahana galkahana released this 22 Aug 16:08
· 40 commits to master since this release

What's Changed

  • Color emoji support for true type COLR version 0. that is, the simpler implementation by @galkahana in #224

WriteText method has now a limited but not inexistent ability to handle true type color emojis via support of COLR table version 0. This is the simple version supporting solid colors, but not gradients. I'll probably need to add COLR table version 1 and maybe even support SVG fonts for a full support. TBD on when/if that's gonna happen.

As a side effect I added support for setting opacity in either of the following manners:

  • as a parameter to WriteText method inOptions parameter (inOptions.opacity).
  • as a parameter to Draw* methods inOptions paraemter (inOptions.opacity)
  • directly set via SetOpacity method

Value should be double 0..1 with 0 being completely transparent, and 1 is fully opaque. a special value of 255.0 means not-set on options structures.

The implementation follows @chunyenHuang work in hummusRecipe, creating an ExternalGState object for every opacity value provided, and reusing them when given the same value, as well as setting the opacity for both fill and stroke drawing at the same time, for the sake of convenience.

Full Changelog: v4.5.10...v4.5.11