Ebrahim Byagowi
a0b4ac4dce
Turn 8 spaces to tab across the project
...
According to the current code style of the project
5 years ago
Ebrahim Byagowi
e412008599
Remove redundant void from C++ sources ( #1486 )
6 years ago
Ebrahim Byagowi
0fa1edbd3b
[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
6 years ago
Behdad Esfahbod
f90bab8560
[util] Add --ft-load-flags
...
Useful for performance testing.
Not hooked to cairo yet. Just changes shaping, not rasterization.
6 years ago
Ebrahim Byagowi
aa0c5df419
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.
7 years ago
Olivier Blin
0fd89dc61c
[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
7 years ago
Behdad Esfahbod
dbdbfe3d7b
Use nullptr instead of NULL
7 years ago
Behdad Esfahbod
7647a05a0b
Minor
8 years ago
Behdad Esfahbod
47ee34e847
[var] Hook up variations to FreeType face
...
hb-view correctly renders variations with ft font-funcs now.
hb-ot-font needs HVAR implementation.
8 years ago
Behdad Esfahbod
808d3fc0ea
[util] Port hb-view to use font metrics from HarfBuzz instead of cairo
9 years ago
Chun-wei Fan
998e8dda93
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.
9 years ago
Behdad Esfahbod
6c0ebd02c9
[util] If font has color, generate PNG with color
9 years ago
Behdad Esfahbod
3530cc2d7c
[util] Fix option-parsing leaks
9 years ago
Behdad Esfahbod
cd4eb96abb
[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.
10 years ago
Behdad Esfahbod
8656408572
[util] Fix hb-view rendering with --font-funcs=ot
11 years ago
Behdad Esfahbod
ea5e8a02eb
[util] Plug minor leak
11 years ago
Behdad Esfahbod
9815a88111
[util] List supported output formats in --help output
12 years ago
Behdad Esfahbod
f95a87b7b8
[util] List supported output formats in hb-view
12 years ago
Behdad Esfahbod
a18280a8ce
Fix warnings produced by clang analyzer
13 years ago
Behdad Esfahbod
0594a24484
Cleanup TRUE/FALSE vs true/false
13 years ago
Behdad Esfahbod
8f8956a55f
[util] Add hidden --shaper that is equivalent of --shapers
13 years ago
Behdad Esfahbod
52e7b1424a
[util] Make hb-view print out Unicode art if stdout is a terminal
13 years ago
Behdad Esfahbod
95cefdf96e
Add --utf8-clusters
...
Also fix cairo cluster generation.
13 years ago
Behdad Esfahbod
088c1e27c0
[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...
13 years ago
Behdad Esfahbod
8b8b19056d
[util] Add hb-shape utility
...
Like hb-view, but prints out buffer contents.
The output format is kinda cryptic. Suggestions welcome.
13 years ago
Behdad Esfahbod
f6496663c2
[util] If no text is provided, simply call cairo_show_glyphs()
13 years ago
Behdad Esfahbod
11e51993ab
[util] Move font-size into view-options
13 years ago
Behdad Esfahbod
d2b3ab9ece
Fix "[util] Fix hb-view crash with bogus font."
13 years ago
Behdad Esfahbod
da4a2a1426
Cosmetic
13 years ago
Behdad Esfahbod
4274ed7ab6
[util] Fix hb-view crash with bogus font
13 years ago
Behdad Esfahbod
55aeb04904
Fix reading text from stdin
13 years ago
Behdad Esfahbod
7bf6ecd3bf
Always shape at size=upem
...
Fixes bug with uniscribe not handling GIGANTIC sizes.
13 years ago
Behdad Esfahbod
f7e2ef74f8
[hb-view] Make print to stdout work in Windows
...
Apparently there's no equivalent to "/dev/stdout", so write using
stdio to be able to output to stdout.
13 years ago
Behdad Esfahbod
b9b10ad78b
[util] Refactor hb-view completely
...
Now we can use the same code to do other utils...
13 years ago