diff --git a/meson_options.txt b/meson_options.txt index 5b9d221e0..1b7b47048 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -38,7 +38,7 @@ option('raster', type: 'feature', value: 'enabled', option('vector', type: 'feature', value: 'enabled', description: 'Enable HarfBuzz glyph vector drawing library') option('gpu', type: 'feature', value: 'enabled', - description: 'Enable HarfBuzz GPU glyph encoding library') + description: 'Enable HarfBuzz GPU rasterization library') option('subset', type: 'feature', value: 'enabled', description: 'Enable HarfBuzz font subsetting and instancing library') diff --git a/src/hb-gpu-draw.cc b/src/hb-gpu-draw.cc index db884ca51..f17f4870c 100644 --- a/src/hb-gpu-draw.cc +++ b/src/hb-gpu-draw.cc @@ -273,7 +273,7 @@ encode_curve_info (const hb_gpu_curve_t *c) /** * hb_gpu_draw_encode: - * @draw: a GPU draw encoder + * @draw: a GPU shape encoder * * Encodes the accumulated glyph outlines into a compact blob * suitable for GPU rendering. The blob data is an array of @@ -640,7 +640,7 @@ hb_gpu_draw_encode (hb_gpu_draw_t *draw) /** * hb_gpu_draw_create_or_fail: * - * Creates a new GPU glyph encoder. + * Creates a new GPU shape encoder. * * Return value: (transfer full): * A newly allocated #hb_gpu_draw_t, or `NULL` on allocation failure. @@ -655,7 +655,7 @@ hb_gpu_draw_create_or_fail (void) /** * hb_gpu_draw_reference: (skip) - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * * Increases the reference count on @draw by one. * @@ -672,10 +672,10 @@ hb_gpu_draw_reference (hb_gpu_draw_t *draw) /** * hb_gpu_draw_destroy: (skip) - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * * Decreases the reference count on @draw by one. When the - * reference count reaches zero, the glyph encoder is freed. + * reference count reaches zero, the encoder is freed. * * XSince: REPLACEME **/ @@ -688,7 +688,7 @@ hb_gpu_draw_destroy (hb_gpu_draw_t *draw) /** * hb_gpu_draw_set_user_data: (skip) - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * @key: the user-data key * @data: a pointer to the user data * @destroy: (nullable): a callback to call when @data is not needed anymore @@ -712,7 +712,7 @@ hb_gpu_draw_set_user_data (hb_gpu_draw_t *draw, /** * hb_gpu_draw_get_user_data: (skip) - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * @key: the user-data key * * Fetches the user-data associated with the specified key. @@ -749,7 +749,7 @@ hb_gpu_draw_get_funcs (void) /** * hb_gpu_draw_glyph: - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * @font: font to draw from * @codepoint: glyph ID to draw * @@ -770,7 +770,7 @@ hb_gpu_draw_glyph (hb_gpu_draw_t *draw, /** * hb_gpu_draw_get_extents: - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * @extents: (out): glyph extents * * Fetches the extents of the accumulated glyph outlines. @@ -800,9 +800,9 @@ hb_gpu_draw_get_extents (hb_gpu_draw_t *draw, /** * hb_gpu_draw_reset: - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * - * Resets the glyph encoder, discarding all accumulated outlines. + * Resets the encoder, discarding all accumulated outlines. * The internal encode buffer is kept for reuse. * * XSince: REPLACEME @@ -825,10 +825,10 @@ hb_gpu_draw_reset (hb_gpu_draw_t *draw) /** * hb_gpu_draw_recycle_blob: - * @draw: a GPU glyph encoder + * @draw: a GPU shape encoder * @blob: (transfer full): a blob previously returned by hb_gpu_draw_encode() * - * Returns a blob to the glyph encoder for potential reuse. + * Returns a blob to the encoder for potential reuse. * The caller transfers ownership of @blob. * * Currently this simply destroys the blob. A future version diff --git a/src/hb-gpu.h b/src/hb-gpu.h index 45c37bfc0..90b1d8e35 100644 --- a/src/hb-gpu.h +++ b/src/hb-gpu.h @@ -56,8 +56,8 @@ hb_gpu_shader_vertex_sources (hb_gpu_shader_lang_t lang, /** * hb_gpu_draw_t: * - * An opaque GPU glyph encoder. Accumulates glyph outlines via - * draw callbacks, then encodes them into a compact blob for GPU + * An opaque GPU shape encoder. Accumulates outlines via draw + * callbacks, then encodes them into a compact blob for GPU * rendering. * * XSince: REPLACEME diff --git a/src/meson.build b/src/meson.build index c3a3b947e..5dfc9b3a3 100644 --- a/src/meson.build +++ b/src/meson.build @@ -913,7 +913,7 @@ if not get_option('gpu').disabled() defs_list += [harfbuzz_gpu_def] pkgmod.generate(libharfbuzz_gpu, - description: 'HarfBuzz GPU glyph encoding library', + description: 'HarfBuzz GPU rasterization library', requires: ['harfbuzz = @0@'.format(meson.project_version())], subdirs: [meson.project_name()], version: meson.project_version(),