util


Log

Author Commit Date CI Message
Behdad Esfahbod 39b17837 2012-07-17T17:09:29 Add hb_buffer_normalize_glyphs() and hb-shape --normalize-glyphs This reorders glyphs within the cluster to a nominal order. This should have no visible effect on the output, but helps with testing, for getting the same hb-shape output for visually-equal glyphs for each cluster.
Behdad Esfahbod 6a5661f1 2012-06-09T03:26:16 Ugh
Behdad Esfahbod f211d5c2 2012-06-09T03:11:22 More Oops! Fix fast-path with sub-type==0
Behdad Esfahbod a18280a8 2012-06-07T15:44:12 Fix warnings produced by clang analyzer
Behdad Esfahbod 7ec83051 2012-06-07T13:32:57 Fix warnings
Behdad Esfahbod 0594a244 2012-06-05T20:35:40 Cleanup TRUE/FALSE vs true/false
Behdad Esfahbod 4a8a5290 2012-06-05T19:17:02 Make hb-view err if all shapers failed
Behdad Esfahbod c1885483 2012-06-04T08:56:00 Add --verbose to hb-shape Just turns all --show-* options on.
Behdad Esfahbod ae621665 2012-06-02T12:21:19 [util] Minor
Behdad Esfahbod 5db0683a 2012-06-02T12:13:08 [util] Make hb-shape continue shaping other lines if shapers failed
Behdad Esfahbod cd6a5493 2012-06-01T13:45:25 Remove unused variable
Behdad Esfahbod bce09552 2012-05-27T11:29:21 Add hb_font_get_glyph_name() and hb_font_get_glyph_from_name()
Behdad Esfahbod 8f8956a5 2012-05-25T14:30:24 [util] Add hidden --shaper that is equivalent of --shapers
Behdad Esfahbod 29ce446d 2012-05-25T14:17:54 Add set iterator
Behdad Esfahbod c87b317f 2012-05-15T23:53:18 [util] Add hb-ot-shape-closure tool Computes all the glyphs that may be generated given a font and set of Unicode characters. The order of the Unicode characters is irrelevant. Sample output: behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf f f f_f behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf i i behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf fi f f_i f_f_i f_f i behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ب uni0628 uni0628.init uni0628.medi uni0628.fina behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ا uni0627 uni0627.fina behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با uni0627 uni0627.fina uni0628 uni0628.init uni0628.medi uni0628.fina behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با --no-glyph-names 5 6 133 134 135 136
Behdad Esfahbod 45675e58 2012-05-15T23:10:39 [util] Refactor to accommodate for upcoming new tool
Behdad Esfahbod 8caf5dcd 2012-05-13T17:10:18 Minor
Behdad Esfahbod 50f630c1 2012-05-13T13:03:44 Remove ioctl checks Ended up not using terminal size after all.
Behdad Esfahbod db0de7cd 2012-05-13T13:02:38 [util] Set ansi color only on color change
Behdad Esfahbod 912c5ff8 2012-05-13T12:51:02 Reduce default margin
Behdad Esfahbod 52e7b142 2012-05-13T02:02:58 [util] Make hb-view print out Unicode art if stdout is a terminal
Behdad Esfahbod 30874b48 2012-05-12T15:54:27 [util] Make tools default to stdin if no text is provided One less argument to type in typical testing workflow!
Behdad Esfahbod 20979511 2012-05-12T15:41:48 [util] Change default font size of hb-view to 256 Most common usecase of hb-view is to test rendering of short words for testing / inspection. Not having to type "--font-size 150" each time isn't such a bad idea...
Behdad Esfahbod 95cefdf9 2012-04-16T18:08:20 Add --utf8-clusters Also fix cairo cluster generation.
Behdad Esfahbod effb42e5 2012-04-16T16:04:07 Always use cairo_show_text_glyphs() Better catches cluster errors.
Behdad Esfahbod 799cfdd1 2012-04-16T16:00:36 Make page progression be right to left for vertical text
Behdad Esfahbod 69b84a8f 2012-04-12T15:50:40 Fix hb-view surface size calc for vertical text For some reason it doesn't quite work with IranianNastaliq, but that looks like a font issue.
Behdad Esfahbod 6bd9b479 2012-04-12T14:53:53 Hide backend-specific shape functions Also remove shaper_options argument to hb_shape_full(). That was unused and for "future". Let it go. More shaper API coming in preparation for plan/planned API.
Behdad Esfahbod f51e1674 2012-01-30T09:48:33 Minor error handling
Behdad Esfahbod d5300241 2012-01-21T19:07:22 [util] Make clusters work with char offset instead of UTF-8 offset This means the --features indices also refer to char position instead of byte position now. Same for cluster values reported by hb-shape. Will add an option for byte indices later.
Behdad Esfahbod 0f68f4a0 2012-01-21T18:59:48 Correctly print out Unicode strings
Behdad Esfahbod d8134bc0 2012-01-20T17:18:59 [hb-shape] Add parantheses around --show-text output
Behdad Esfahbod 4e84ce48 2012-01-20T13:50:55 Move hb-diff to test/shaping/
Behdad Esfahbod c91c4fa4 2012-01-19T17:51:57 [hb-shape] Change glyphstring brackets from </> to [/] Sorry for the disruption but I need this to differentiate from the Unicode string.
Behdad Esfahbod 4983feeb 2012-01-19T13:54:52 [hb-diff] Clean up
Behdad Esfahbod cdc673d9 2012-01-19T12:46:18 [hb-shape] Add --show-line-num Ok, much more useful as a test suite driver now.
Behdad Esfahbod cc4d9810 2012-01-19T12:32:20 [hb-shape] Add --show-text and --show-unicode options
Behdad Esfahbod 27c36af4 2012-01-19T12:30:43 Fix OOB in hb-shape
Behdad Esfahbod 8750abaf 2012-01-18T22:47:44 [util] Add --help-features Patch from Khaled Hosny.
Behdad Esfahbod a097043f 2012-01-14T17:55:51 Allow space in one more place when parsing features
Behdad Esfahbod fd528c17 2011-10-12T15:03:58 [util] Add --list-shapers to hb-view and hb-shape
Behdad Esfahbod 5857720c 2011-09-27T12:36:26 [util] s/%d/%u/ when printing glyph ids and clusters
Behdad Esfahbod d3f3690b 2011-09-21T16:41:43 hb-shape: In --no-glyph-names, output glyph number directly Ie. write "86" instead of "gid86".
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 e700bce1 2011-09-20T11:20:53 [util] Add hb-diff A diff program written in Python that is more suitable for comparing hb-shape output from different backends. Main differences with stock diff: 1. It outputs one line's comparison at a time, as opposed to batching '+' lines and '-' lines. 2. It colors the part of the line that changed, taking word boundaries into consideration. You can pipe the colored output to 'less -r'.
Behdad Esfahbod 42255814 2011-09-19T17:57:02 [util] Account for line-space in surface size
Behdad Esfahbod b5afd8f7 2011-09-19T16:56:21 [util] Rename --output to --output_file, and --format to --output-format
Behdad Esfahbod 466393c2 2011-09-19T16:50:18 Really fix build this time
Behdad Esfahbod fe1605db 2011-09-19T16:49:03 Fix dist
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.
Behdad Esfahbod f6496663 2011-09-19T15:45:52 [util] If no text is provided, simply call cairo_show_glyphs()
Behdad Esfahbod 11e51993 2011-09-19T09:58:55 [util] Move font-size into view-options
Behdad Esfahbod 0fe29601 2011-09-17T09:59:58 Fix Linux build when io.h is available Bug 40953 - fail compile git: make[2]: *** [hb_view-options.o] Error 1
Behdad Esfahbod d2b3ab9e 2011-09-16T16:59:17 Fix "[util] Fix hb-view crash with bogus font."
Behdad Esfahbod da4a2a14 2011-09-16T16:56:34 Cosmetic
Behdad Esfahbod 4274ed7a 2011-09-16T16:52:26 [util] Fix hb-view crash with bogus font
Behdad Esfahbod 5ddd9cc4 2011-09-16T16:40:44 Minor
Behdad Esfahbod 55aeb049 2011-09-16T02:08:36 Fix reading text from stdin
Behdad Esfahbod a75c1b12 2011-09-16T01:16:41 Move code around
Behdad Esfahbod 7bf6ecd3 2011-09-16T01:11:30 Always shape at size=upem Fixes bug with uniscribe not handling GIGANTIC sizes.
Behdad Esfahbod 674ee58d 2011-09-16T00:54:05 Minor
Behdad Esfahbod 4451168e 2011-09-16T00:38:19 Fix binary stdin/stdout io in Windows Make --font-file accept "-" to mean stdin, and have it work in Windows too!
Behdad Esfahbod 639b5957 2011-09-15T18:09:49 Minor
Behdad Esfahbod f7e2ef74 2011-09-15T17:52:00 [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.
Behdad Esfahbod b9b10ad7 2011-09-13T13:30:39 [util] Refactor hb-view completely Now we can use the same code to do other utils...
Behdad Esfahbod bc4b07b0 2011-09-08T17:08:32 More reshuffling
Behdad Esfahbod 516857eb 2011-09-08T16:50:24 [util] Simplify more
Behdad Esfahbod 4f4b114a 2011-09-08T16:49:02 [util] Move code around
Behdad Esfahbod 46d86a73 2011-09-08T16:43:15 Minor We now support using -1 for NUL-terminated strings.
Behdad Esfahbod 90e312cb 2011-09-08T16:42:37 [util] Move code around
Behdad Esfahbod 109cb382 2011-09-08T16:00:04 [util] Further refactor option parsing
Behdad Esfahbod 4c9fe88d 2011-08-26T09:18:53 [API] Make all _from_string() functions take a len parameter Can be -1 for NUL-terminated string. This is useful for passing parts of a larger string to a function without having to copy or modify the string first. Affected functions: hb_tag_t hb_tag_from_string() hb_direction_from_string() hb_language_from_string() hb_script_from_string()
Behdad Esfahbod e6c09cdf 2011-08-17T19:07:59 Remove the pre_allocate argument from hb_buffer_create() For two reasons: 1. User can always call hb_buffer_pre_allocate() themselves, and 2. Now we do a pre_alloc in add_utfX anyway, so the total number of reallocs is limited to a small number (~3) anyway. This just makes the API cleaner.
Behdad Esfahbod 0b7e4d9f 2011-08-15T20:41:59 [ft] FT_Get_Advance() for advance-width callbacks Using graphite2's comparerenderer suggests that this makes hb-ft 15 times faster. No caching layer needed anymore.
Behdad Esfahbod 97796453 2011-08-15T19:03:43 Fix falloffs of the GOption conversion
Behdad Esfahbod 3bb300ee 2011-08-11T11:54:31 Refactor hb-view code
Behdad Esfahbod 36a4fe03 2011-08-10T21:54:22 Fix charset conversion
Behdad Esfahbod 25c48305 2011-08-10T16:28:38 [util] Add hb-shape --shapers If the specified shapers fail, hb-shape will fail immediately
Behdad Esfahbod a21add6c 2011-08-10T16:07:49 Reformat
Behdad Esfahbod 8df90c81 2011-08-10T15:26:41 [util] Port hb-view to GOption
Behdad Esfahbod 511a136f 2011-08-09T15:03:00 Move hb-view into util/