util/helper-cairo.cc


Log

Author Commit Date CI Message
Ebrahim Byagowi 0fa1edbd 2018-10-01T09:40:29 [circleci] Couple of fixes (#1200) * Raise error on warnings on -everything * Enable fontconfig to two bots * Fix msan bot now that all of its real complain are gone
Behdad Esfahbod f90bab85 2018-09-11T14:21:15 [util] Add --ft-load-flags Useful for performance testing. Not hooked to cairo yet. Just changes shaping, not rasterization.
Ebrahim Byagowi aa0c5df4 2018-06-17T16:49:34 Fix reading fonts from stdin (#1060) 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.
Olivier Blin 0fd89dc6 2017-12-04T18:58:41 [hb-ft] Fix build when Multiple Master font support is disabled in freetype FT_Set_Var_Blend_Coordinates() is not available when "Multiple Master font interface" is disabled in freetype's modules.cfg
Behdad Esfahbod dbdbfe3d 2017-10-15T12:11:08 Use nullptr instead of NULL
Behdad Esfahbod 7647a05a 2017-01-22T17:47:49 Minor
Behdad Esfahbod 47ee34e8 2017-01-21T18:10:08 [var] Hook up variations to FreeType face hb-view correctly renders variations with ft font-funcs now. hb-ot-font needs HVAR implementation.
Behdad Esfahbod 808d3fc0 2015-12-10T16:55:16 [util] Port hb-view to use font metrics from HarfBuzz instead of cairo
Chun-wei Fan 998e8dda 2015-11-02T16:55:29 util: Fix build on Visual Studio Use the fallback implementation for lround() only on pre-2013 Visual Studio, and ensure we are clear about the types of the parameters for lround() and scalbnf(), since Visual Studio can be quite picky on ambiguous parameter types. Also, use g_ascii_strcasecmp() rather than strcasecmp() as we are already using GLib for this code and we are assured that g_ascii_strcasemp() is available. For scalbnf() on pre-2013 Visaul Studio, a fallback implementation is needed, but use another forced-included header for those compilers, which will be added later. Also use (char)27 on Visual Studio builds as '\e' is not a recognized escape sequence, which will do the same thing.
Behdad Esfahbod 6c0ebd02 2015-11-05T11:37:48 [util] If font has color, generate PNG with color
Behdad Esfahbod 3530cc2d 2015-11-03T11:34:47 [util] Fix option-parsing leaks
Behdad Esfahbod cd4eb96a 2015-01-20T12:30:45 [util] Add --font-size to hb-shape Also makes hb-view to use 8 bits of subpixel precision and shape at requested size, instead of always shaping at upem and scaling results.
Behdad Esfahbod 86564085 2014-07-08T18:10:20 [util] Fix hb-view rendering with --font-funcs=ot
Behdad Esfahbod ea5e8a02 2014-03-19T15:38:02 [util] Plug minor leak
Behdad Esfahbod 9815a881 2012-12-21T16:46:53 [util] List supported output formats in --help output
Behdad Esfahbod f95a87b7 2012-12-21T16:35:28 [util] List supported output formats in hb-view
Behdad Esfahbod a18280a8 2012-06-07T15:44:12 Fix warnings produced by clang analyzer
Behdad Esfahbod 0594a244 2012-06-05T20:35:40 Cleanup TRUE/FALSE vs true/false
Behdad Esfahbod 8f8956a5 2012-05-25T14:30:24 [util] Add hidden --shaper that is equivalent of --shapers
Behdad Esfahbod 52e7b142 2012-05-13T02:02:58 [util] Make hb-view print out Unicode art if stdout is a terminal
Behdad Esfahbod 95cefdf9 2012-04-16T18:08:20 Add --utf8-clusters Also fix cairo cluster generation.
Behdad Esfahbod 088c1e27 2011-09-20T14:43:55 [util] Fix option parsing Wow, who knew bool is one byte and I was using it as a 4byte int?! C++ auto casts fails you in mysterious ways...
Behdad Esfahbod 8b8b1905 2011-09-19T16:41:17 [util] Add hb-shape utility Like hb-view, but prints out buffer contents. The output format is kinda cryptic. Suggestions welcome.