util


Log

Author Commit Date CI Message
Behdad Esfahbod 82a3b2db 2023-01-16T11:18:22 [util] Fix --named-instance
Behdad Esfahbod ad6b9c41 2023-01-16T11:07:03 [util] Format --list-features
Behdad Esfahbod 0f4da850 2023-01-16T11:04:38 [util] Minor in --list-features clear feature set between GSUB/GPOS
Behdad Esfahbod f25e3696 2023-01-16T10:54:23 [hb-shape/hb-view] Better --list-features
Behdad Esfahbod 32d43959 2023-01-15T22:34:14 [hb-shape/view] Print feature names in --list-features
Behdad Esfahbod cc6a9bfa 2023-01-15T18:16:19 [hb-shape/view] Print table length in --list-tables
Behdad Esfahbod 880d65c9 2023-01-15T18:14:14 [hb-shape/view] Add --list-tables
Behdad Esfahbod 3d5a922b 2023-01-15T16:15:52 Fix really
Behdad Esfahbod 484831be 2023-01-15T16:14:53 [util] Fix build
Behdad Esfahbod 8a6ecc5c 2023-01-15T13:54:27 [hb-view/shape] Add --list-features
Behdad Esfahbod 40a8145a 2023-01-15T11:30:24 [util] Don't use hb_vector_t
Behdad Esfahbod d769e8ae 2023-01-15T10:58:15 [hb-shape/view] Add --named-instance
Behdad Esfahbod 40bf30bf 2023-01-15T10:45:47 [util] Print named-instance index in --list-variations
Behdad Esfahbod 14a83d6c 2023-01-15T10:11:54 [hb-shape/view] --list-variations cleanup
Behdad Esfahbod e1a54483 2023-01-15T10:00:26 [hb-shape/view] Print named-instances in --list-variations Might remove the coordinates.
Behdad Esfahbod 9abc2107 2023-01-15T09:46:19 [hb-shape/view] Add --list-variations
Behdad Esfahbod ed023f66 2023-01-12T17:04:24 Enable -Wformat-signedness And fix the codebase.
Behdad Esfahbod 70ca1460 2023-01-07T15:48:57 [chafa] Re-enable truecolor mode See 42bf8e3d49 https://github.com/harfbuzz/harfbuzz/pull/2959#issuecomment-827056111
Behdad Esfahbod 30d4a734 2023-01-06T16:00:53 [hb-subset] Adjust help for instancing
Behdad Esfahbod aba6cbe8 2023-01-06T13:09:10 [hb-subset] Adjust --help-all formatting Meh.
Behdad Esfahbod 85e8f2b5 2023-01-01T18:26:08 [hb-subset] Initialize preprocess variable
Behdad Esfahbod 4a5bd7a9 2023-01-01T16:53:28 [subset] Add hb_subset_input_keep_everything() Fixes https://github.com/harfbuzz/harfbuzz/issues/3998 New API: + hb_subset_input_keep_everything()
Behdad Esfahbod d87add41 2023-01-01T16:27:26 [hb-subset] Rename --preprocess-face to --preprocess Keep old name working but hidden.
Khaled Hosny 00060d99 2022-12-30T22:55:56 [hb-cairo] Silence warning when building with FreeType In file included from ../util/hb-view.cc:33: In file included from ../util/view-cairo.hh:32: ../util/helper-cairo.hh:102:7: warning: variable 'cairo_face' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] if (use_hb_draw) ^~~~~~~~~~~ ../util/helper-cairo.hh:129:64: note: uninitialized use occurs here cairo_scaled_font_t *scaled_font = cairo_scaled_font_create (cairo_face, ^~~~~~~~~~ ../util/helper-cairo.hh:102:3: note: remove the 'if' if its condition is always true if (use_hb_draw) ^~~~~~~~~~~~~~~~ ../util/helper-cairo.hh:101:32: note: initialize the variable 'cairo_face' to silence this warning cairo_font_face_t *cairo_face; ^ = nullptr We know that cairo_face will always be assigned since use_hb_draw will always be true, but the compiler does not know that.
Behdad Esfahbod 0d98c79b 2022-12-29T21:07:38 [util] Centralize includes again
Behdad Esfahbod d90ccc1c 2022-12-29T21:02:06 [view] More includes
Behdad Esfahbod 969914b2 2022-12-29T21:01:16 [view] Clean up includes
Behdad Esfahbod 2bbc57c3 2022-12-29T20:41:55 [chafa] Residual
Behdad Esfahbod 962d4925 2022-12-29T20:39:02 [ansi] Optimize write
Behdad Esfahbod a35f8e34 2022-12-29T20:34:23 [ansi] Whitespace
Behdad Esfahbod 0004ec13 2022-12-29T20:26:42 [view] Write ansi output to --output-file Was writing to stdout all this time!
Behdad Esfahbod 3a319b59 2022-12-29T20:26:09 [ansi] Write \e directly
Behdad Esfahbod ab8b9b44 2022-12-29T18:33:12 [view] Streamline cairo-ft face lifecycle management
Behdad Esfahbod 228a4154 2022-12-29T18:19:06 [view-cairo] Minor subpixel-bits
Behdad Esfahbod 74d29cd1 2022-12-29T18:11:41 [helper-cairo] Remove a method
Behdad Esfahbod b1de87b7 2022-12-29T10:34:47 [cairo] Document get_glyphs() arguments as inout
Behdad Esfahbod dc9ca637 2022-12-27T17:49:02 [hb-view] Remove stale disabled code path With color rendering that code path is wrong anyway. And cairo now supports subpixel text positioning.
Behdad Esfahbod 5efb3bc6 2022-12-27T17:47:46 [hb-view] Set hb-cairo scale-factor Unused.
Behdad Esfahbod 81c04b0c 2022-12-27T17:46:25 [cairo] Add separate x/y scale factors
Matthias Clasen 7d3b3739 2022-12-27T08:37:46 Fix the autotools build
Behdad Esfahbod c38abcb3 2022-12-26T16:03:25 [cairo] Add x,y args to get_glyphs
Behdad Esfahbod 847ed695 2022-12-26T15:59:57 [cairo] Reorder arguments of a call
Behdad Esfahbod 120419e1 2022-12-26T15:10:26 [hb-view] Fix autotools build
Behdad Esfahbod ea993af8 2022-12-25T19:17:18 [view] Don't double-slant
Behdad Esfahbod cf001f6e 2022-12-25T19:01:28 [cairo] Add constructor from hb_face_t
Behdad Esfahbod 20a50acc 2022-12-25T16:09:26 [hb-cairo] Make hb_cairo_glyphs_from_buffer public
Behdad Esfahbod a230eb8c 2022-12-25T15:49:14 [hb-cairo] Factorize hb_cairo_glyphs_from_buffer To be made public.
Behdad Esfahbod 5c3da76a 2022-12-25T15:04:13 [hb-cairo] Change API again We need to work with a hb-font for variations and font-funcs to be fetched properly.
Behdad Esfahbod 9f7538c2 2022-12-25T13:46:37 [hb-cairo] Change API
Matthias Clasen 0d6ee462 2022-12-25T10:50:56 wip: Make hb-view use hb-cairo This is a quick hack to prove that the hb-cairo apis work
Behdad Esfahbod 5f168db8 2022-12-26T15:12:27 [hb-view] Build with autotools if cairo-ft is not available Like with meson.
Behdad Esfahbod 6ccbfabd 2022-12-24T10:44:25 [paint] Return bool from paint_image() Fixes https://github.com/harfbuzz/harfbuzz/issues/3974
Matthias Clasen dfd371e9 2022-12-24T09:57:48 Cosmetics
Matthias Clasen 4816be9a 2022-12-24T07:37:04 Work around cairo limitations If we just draw an image, cairos recording surface complains that it is unbounded. Its not true of course. To make things work, clip to the extents.
Matthias Clasen 76c16095 2022-12-24T05:30:11 Fix the build on Windows No __BYTE_ORDER there.
Behdad Esfahbod 56a48f8b 2022-12-23T16:44:06 [paint] Don't use extents in hb-view Let the clipbox do its magic. Currently works for ft backend only.
Matthias Clasen b1500bab 2022-12-21T09:49:42 utils: Some cairo helper tweaks
Matthias Clasen 97224f3b 2022-12-21T02:11:36 [paint] Pass font to all callbacks This will lead to easier implementations. At the same time, we change the push_clip_glyph callback to use the font as-is, no unscaling needed. Update all callers and expected test results.
Behdad Esfahbod cf02d133 2022-12-20T11:52:39 [cairo] Remove unused struct
Matthias Clasen a3ba7238 2022-12-19T02:22:34 Drop an unneeded include
Matthias Clasen 0800d187 2022-12-19T00:59:40 Try to fix autotools build
Matthias Clasen 5451b78f 2022-12-19T00:07:18 Don't use alloca It complicates things on Windows, for no big win. Just preallocate a reasonable amount.
Matthias Clasen 7c12db46 2022-12-18T23:36:05 Try to fix msvc build
Behdad Esfahbod 3590ee74 2022-12-18T13:59:56 [util] Fix bot
Behdad Esfahbod 81bf0892 2022-12-18T13:15:49 [hb-view] Use color render callback if HB_DRAW >= 2
Matthias Clasen c65f580b 2022-12-18T15:13:55 Drop hb-test This was a test binary to assist in developing the hb-paint code. Not needed anymore, now that hb-view has the same code in the cairo userfont backend.
Behdad Esfahbod 9672aa86 2022-12-18T12:57:42 [util] Fix compiler warning
Matthias Clasen 955bd303 2022-12-18T14:55:56 Fix hb-cairo-utils This was a stupid mistake, and hard to track down.
Behdad Esfahbod 35739567 2022-12-18T12:56:01 [util] Include stdio.h
Behdad Esfahbod 7accbe97 2022-12-18T12:51:26 [util] Fix argument order and root transform PNGs
Behdad Esfahbod 529dc40d 2022-12-18T12:35:50 [util] Adjust scaling Still doesn't render PNGs. Fix a few compiler warnings
Behdad Esfahbod bcc9ab27 2022-12-18T11:59:54 [hb-view] Fix transformation No need for cairo patch; that patch was wrong.
Behdad Esfahbod c996fc58 2022-12-18T11:36:58 [hb-view] Remove redundant check
Behdad Esfahbod bec53540 2022-12-18T11:26:46 [hb-view] Fix render_color_glyph extents coordinate system Needs cairo fix: https://gitlab.freedesktop.org/cairo/cairo/-/merge_requests/371
Behdad Esfahbod 95ccd664 2022-12-18T11:08:25 [hb-view] Set glyph extents in render_color_glyph Works around limitation in cairo-recording-surface unboundedness. Extents are wrong but at least renders something now.
Matthias Clasen 6cadf280 2022-12-18T09:42:18 Use hb-cairo-utils in hb-test Just to prove that it works.
Matthias Clasen 8bcd13dd 2022-12-18T09:41:00 small fixup to hb-cairo-utils
Matthias Clasen 6c49822c 2022-12-18T01:52:39 wip: Use hb-paint in hb-view This doesn't paint anything yet.
Behdad Esfahbod 3b32eab3 2022-12-17T17:13:30 [colr] Fix compiler warning
Behdad Esfahbod e3153654 2022-12-17T13:56:22 [colr] Fix PNG placement
Behdad Esfahbod f07ce68f 2022-12-17T13:48:05 Remove unused function
Matthias Clasen 0a2f3673 2022-12-17T13:51:23 [paint] Use tags for image formats This fits better with the rest of the HarfBuzz API.
Matthias Clasen 485ba9be 2022-12-17T12:25:04 [paint] Spell out rectangle in the API No need to abbreviate this.
Matthias Clasen 37f3f0fc 2022-12-17T11:49:18 [paint] Change the image callback Instead of passing the glyph ID, give it the image blob, a mimetype, and glyph extents (if available). Update all callers.
Matthias Clasen 9876e30c 2022-12-17T02:46:37 test: Support png images via paint_image
Matthias Clasen 0d890061 2022-12-17T00:07:30 Rename 'solid' to 'color' 'solid' does not really describe well what the function does, and there is no strong reason to stick 1:1 to the terminology used in the spec.
Matthias Clasen 2c078286 2022-12-16T23:23:51 test: More debug spew
Behdad Esfahbod fdf17dbf 2022-12-16T15:00:06 Try fixing bots
Matthias Clasen 5c632955 2022-12-16T12:04:17 Apply root transform This commit applies scale, slant is still missing.
Matthias Clasen 794fa4c3 2022-12-15T22:22:31 sweep gradients etc
Matthias Clasen d07fdc69 2022-12-14T23:58:59 test: dump color lines
Matthias Clasen 627c857f 2022-12-14T22:36:54 rename pop_group_and_composite
Matthias Clasen c9350838 2022-12-14T22:32:40 assorted fixes and changes
Matthias Clasen 5a123e86 2022-12-14T22:05:02 quick testcase
Matthias Clasen ecd74204 2022-12-23T13:32:31 Debug spew To get a dump of the hb-paint callbacks, set HB_PAINT_DEBUG=1 when running hb-view. For now, leave this code in place, since it comes in handy for various debugging.
Matthias Clasen 13e0cb64 2022-12-23T00:54:05 hb-view: Interpolate gradients premultiplied This is what the specs demand.
Behdad Esfahbod 381d410b 2022-12-22T13:21:48 [paint] Add HB_PAINT_IMAGE_FORMAT_BGRA and use it in hb-ft Now hb-ft can render color emoji as well. Just left COLRv2.
Behdad Esfahbod 63db0d2a 2022-12-22T12:19:33 [util] Speculatively fix build against non-PNG builds
Behdad Esfahbod c5f90387 2022-12-22T12:16:55 [paint] Add bitmap width/height to paint_image callback Such that we can add raw data as well.
Behdad Esfahbod 237955df 2022-12-22T08:12:47 [paint] Add slant to image() callback And slant images in hb-view.