@girs/harfbuzz-0.0 8.2.1-3.2.6 → 8.2.1-3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ![downloads/week](https://img.shields.io/npm/dw/@girs/harfbuzz-0.0)
6
6
 
7
7
 
8
- GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.6.
8
+ GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1 using [ts-for-gir](https://github.com/gjsify/ts-for-gir) v3.2.7.
9
9
 
10
10
 
11
11
  ## Install
@@ -3557,7 +3557,7 @@ export const VERSION_MINOR: number
3557
3557
  /**
3558
3558
  * A string literal containing the library version available at compile-time.
3559
3559
  */
3560
- export const VERSION_STRING: string | null
3560
+ export const VERSION_STRING: string
3561
3561
  /**
3562
3562
  * Fetches the name identifier of the specified feature type in the face's `name` table.
3563
3563
  * @param face #hb_face_t to work upon
@@ -3621,14 +3621,14 @@ export function blob_copy_writable_or_fail(blob: blob_t): blob_t
3621
3621
  * @param file_name A font filename
3622
3622
  * @returns An #hb_blob_t pointer with the content of the file, or hb_blob_get_empty() if failed.
3623
3623
  */
3624
- export function blob_create_from_file(file_name: string | null): blob_t
3624
+ export function blob_create_from_file(file_name: string): blob_t
3625
3625
  /**
3626
3626
  * Creates a new blob containing the data from the
3627
3627
  * specified binary font file.
3628
3628
  * @param file_name A font filename
3629
3629
  * @returns An #hb_blob_t pointer with the content of the file, or `NULL` if failed.
3630
3630
  */
3631
- export function blob_create_from_file_or_fail(file_name: string | null): blob_t
3631
+ export function blob_create_from_file_or_fail(file_name: string): blob_t
3632
3632
  /**
3633
3633
  * Returns a blob that represents a range of bytes in `parent`. The new
3634
3634
  * blob is always created with #HB_MEMORY_MODE_READONLY, meaning that it
@@ -3803,7 +3803,7 @@ export function buffer_create_similar(src: buffer_t): buffer_t
3803
3803
  * @param format the #hb_buffer_serialize_format_t of the input `buf`
3804
3804
  * @returns `true` if parse was successful, `false` if an error occurred.
3805
3805
  */
3806
- export function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font: font_t | null, format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string | null ]
3806
+ export function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font: font_t | null, format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string ]
3807
3807
  /**
3808
3808
  * Deserializes Unicode `buffer` from textual representation in the format
3809
3809
  * produced by hb_buffer_serialize_unicode().
@@ -3812,7 +3812,7 @@ export function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font:
3812
3812
  * @param format the #hb_buffer_serialize_format_t of the input `buf`
3813
3813
  * @returns `true` if parse was successful, `false` if an error occurred.
3814
3814
  */
3815
- export function buffer_deserialize_unicode(buffer: buffer_t, buf: string[], format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string | null ]
3815
+ export function buffer_deserialize_unicode(buffer: buffer_t, buf: string[], format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string ]
3816
3816
  /**
3817
3817
  * If dottedcircle_glyph is (hb_codepoint_t) -1 then #HB_BUFFER_DIFF_FLAG_DOTTED_CIRCLE_PRESENT
3818
3818
  * and #HB_BUFFER_DIFF_FLAG_NOTDEF_PRESENT are never returned. This should be used by most
@@ -4024,7 +4024,7 @@ export function buffer_serialize_format_from_string(str: Uint8Array): buffer_ser
4024
4024
  * @param format an #hb_buffer_serialize_format_t to convert.
4025
4025
  * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4026
4026
  */
4027
- export function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string | null
4027
+ export function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string
4028
4028
  /**
4029
4029
  * Serializes `buffer` into a textual representation of its glyph content,
4030
4030
  * useful for showing the contents of the buffer, for example during debugging.
@@ -4324,7 +4324,7 @@ export function direction_from_string(str: Uint8Array): direction_t
4324
4324
  * @param direction The #hb_direction_t to convert
4325
4325
  * @returns The string corresponding to @direction
4326
4326
  */
4327
- export function direction_to_string(direction: direction_t): string | null
4327
+ export function direction_to_string(direction: direction_t): string
4328
4328
  /**
4329
4329
  * Perform a "close-path" draw operation.
4330
4330
  * @param dfuncs draw functions
@@ -5660,7 +5660,7 @@ export function language_matches(language: language_t, specific: language_t): bo
5660
5660
  * @param language The #hb_language_t to convert
5661
5661
  * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5662
5662
  */
5663
- export function language_to_string(language: language_t): string | null
5663
+ export function language_to_string(language: language_t): string
5664
5664
  /**
5665
5665
  * Tests whether memory allocation for a set was successful.
5666
5666
  * @param map A map
@@ -7356,7 +7356,7 @@ export function shape_plan_get_empty(): shape_plan_t
7356
7356
  * @param shape_plan A shaping plan
7357
7357
  * @returns The shaper
7358
7358
  */
7359
- export function shape_plan_get_shaper(shape_plan: shape_plan_t): string | null
7359
+ export function shape_plan_get_shaper(shape_plan: shape_plan_t): string
7360
7360
  /**
7361
7361
  * Searches variation axes of a #hb_font_t object for a specific axis first,
7362
7362
  * if not set, then tries to get default style values from different
@@ -7571,7 +7571,7 @@ export function version_atleast(major: number, minor: number, micro: number): bo
7571
7571
  * Returns library version as a string with three components.
7572
7572
  * @returns Library version string
7573
7573
  */
7574
- export function version_string(): string | null
7574
+ export function version_string(): string
7575
7575
  /**
7576
7576
  * A callback method for #hb_buffer_t. The method gets called with the
7577
7577
  * #hb_buffer_t it was set on, the #hb_font_t the buffer is shaped with and a
@@ -7585,7 +7585,7 @@ export function version_string(): string | null
7585
7585
  * @returns `true` to perform the shaping step, `false` to skip it.
7586
7586
  */
7587
7587
  export interface buffer_message_func_t {
7588
- (buffer: buffer_t, font: font_t, message: string | null): bool_t
7588
+ (buffer: buffer_t, font: font_t, message: string): bool_t
7589
7589
  }
7590
7590
  /**
7591
7591
  * A virtual method for the #hb_color_line_t to fetch color stops.
@@ -8750,7 +8750,7 @@ export interface language_t {
8750
8750
  * Converts an #hb_language_t to a string.
8751
8751
  * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8752
8752
  */
8753
- _string(): string | null
8753
+ _string(): string
8754
8754
  }
8755
8755
 
8756
8756
  /**
package/harfbuzz-0.0.d.ts CHANGED
@@ -3559,7 +3559,7 @@ const VERSION_MINOR: number
3559
3559
  /**
3560
3560
  * A string literal containing the library version available at compile-time.
3561
3561
  */
3562
- const VERSION_STRING: string | null
3562
+ const VERSION_STRING: string
3563
3563
  /**
3564
3564
  * Fetches the name identifier of the specified feature type in the face's `name` table.
3565
3565
  * @param face #hb_face_t to work upon
@@ -3623,14 +3623,14 @@ function blob_copy_writable_or_fail(blob: blob_t): blob_t
3623
3623
  * @param file_name A font filename
3624
3624
  * @returns An #hb_blob_t pointer with the content of the file, or hb_blob_get_empty() if failed.
3625
3625
  */
3626
- function blob_create_from_file(file_name: string | null): blob_t
3626
+ function blob_create_from_file(file_name: string): blob_t
3627
3627
  /**
3628
3628
  * Creates a new blob containing the data from the
3629
3629
  * specified binary font file.
3630
3630
  * @param file_name A font filename
3631
3631
  * @returns An #hb_blob_t pointer with the content of the file, or `NULL` if failed.
3632
3632
  */
3633
- function blob_create_from_file_or_fail(file_name: string | null): blob_t
3633
+ function blob_create_from_file_or_fail(file_name: string): blob_t
3634
3634
  /**
3635
3635
  * Returns a blob that represents a range of bytes in `parent`. The new
3636
3636
  * blob is always created with #HB_MEMORY_MODE_READONLY, meaning that it
@@ -3805,7 +3805,7 @@ function buffer_create_similar(src: buffer_t): buffer_t
3805
3805
  * @param format the #hb_buffer_serialize_format_t of the input `buf`
3806
3806
  * @returns `true` if parse was successful, `false` if an error occurred.
3807
3807
  */
3808
- function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font: font_t | null, format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string | null ]
3808
+ function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font: font_t | null, format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string ]
3809
3809
  /**
3810
3810
  * Deserializes Unicode `buffer` from textual representation in the format
3811
3811
  * produced by hb_buffer_serialize_unicode().
@@ -3814,7 +3814,7 @@ function buffer_deserialize_glyphs(buffer: buffer_t, buf: string[], font: font_t
3814
3814
  * @param format the #hb_buffer_serialize_format_t of the input `buf`
3815
3815
  * @returns `true` if parse was successful, `false` if an error occurred.
3816
3816
  */
3817
- function buffer_deserialize_unicode(buffer: buffer_t, buf: string[], format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string | null ]
3817
+ function buffer_deserialize_unicode(buffer: buffer_t, buf: string[], format: buffer_serialize_format_t): [ /* returnType */ bool_t, /* end_ptr */ string ]
3818
3818
  /**
3819
3819
  * If dottedcircle_glyph is (hb_codepoint_t) -1 then #HB_BUFFER_DIFF_FLAG_DOTTED_CIRCLE_PRESENT
3820
3820
  * and #HB_BUFFER_DIFF_FLAG_NOTDEF_PRESENT are never returned. This should be used by most
@@ -4026,7 +4026,7 @@ function buffer_serialize_format_from_string(str: Uint8Array): buffer_serialize_
4026
4026
  * @param format an #hb_buffer_serialize_format_t to convert.
4027
4027
  * @returns A `NULL` terminated string corresponding to @format. Should not be freed.
4028
4028
  */
4029
- function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string | null
4029
+ function buffer_serialize_format_to_string(format: buffer_serialize_format_t): string
4030
4030
  /**
4031
4031
  * Serializes `buffer` into a textual representation of its glyph content,
4032
4032
  * useful for showing the contents of the buffer, for example during debugging.
@@ -4326,7 +4326,7 @@ function direction_from_string(str: Uint8Array): direction_t
4326
4326
  * @param direction The #hb_direction_t to convert
4327
4327
  * @returns The string corresponding to @direction
4328
4328
  */
4329
- function direction_to_string(direction: direction_t): string | null
4329
+ function direction_to_string(direction: direction_t): string
4330
4330
  /**
4331
4331
  * Perform a "close-path" draw operation.
4332
4332
  * @param dfuncs draw functions
@@ -5662,7 +5662,7 @@ function language_matches(language: language_t, specific: language_t): bool_t
5662
5662
  * @param language The #hb_language_t to convert
5663
5663
  * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
5664
5664
  */
5665
- function language_to_string(language: language_t): string | null
5665
+ function language_to_string(language: language_t): string
5666
5666
  /**
5667
5667
  * Tests whether memory allocation for a set was successful.
5668
5668
  * @param map A map
@@ -7358,7 +7358,7 @@ function shape_plan_get_empty(): shape_plan_t
7358
7358
  * @param shape_plan A shaping plan
7359
7359
  * @returns The shaper
7360
7360
  */
7361
- function shape_plan_get_shaper(shape_plan: shape_plan_t): string | null
7361
+ function shape_plan_get_shaper(shape_plan: shape_plan_t): string
7362
7362
  /**
7363
7363
  * Searches variation axes of a #hb_font_t object for a specific axis first,
7364
7364
  * if not set, then tries to get default style values from different
@@ -7573,7 +7573,7 @@ function version_atleast(major: number, minor: number, micro: number): bool_t
7573
7573
  * Returns library version as a string with three components.
7574
7574
  * @returns Library version string
7575
7575
  */
7576
- function version_string(): string | null
7576
+ function version_string(): string
7577
7577
  /**
7578
7578
  * A callback method for #hb_buffer_t. The method gets called with the
7579
7579
  * #hb_buffer_t it was set on, the #hb_font_t the buffer is shaped with and a
@@ -7587,7 +7587,7 @@ function version_string(): string | null
7587
7587
  * @returns `true` to perform the shaping step, `false` to skip it.
7588
7588
  */
7589
7589
  interface buffer_message_func_t {
7590
- (buffer: buffer_t, font: font_t, message: string | null): bool_t
7590
+ (buffer: buffer_t, font: font_t, message: string): bool_t
7591
7591
  }
7592
7592
  /**
7593
7593
  * A virtual method for the #hb_color_line_t to fetch color stops.
@@ -8752,7 +8752,7 @@ interface language_t {
8752
8752
  * Converts an #hb_language_t to a string.
8753
8753
  * @returns A `NULL`-terminated string representing the @language. Must not be freed by the caller.
8754
8754
  */
8755
- _string(): string | null
8755
+ _string(): string
8756
8756
  }
8757
8757
 
8758
8758
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@girs/harfbuzz-0.0",
3
- "version": "8.2.1-3.2.6",
3
+ "version": "8.2.1-3.2.7",
4
4
  "description": "GJS TypeScript type definitions for HarfBuzz-0.0, generated from library version 8.2.1",
5
5
  "type": "module",
6
6
  "module": "harfbuzz-0.0.js",
@@ -25,10 +25,10 @@
25
25
  "test:cjs": "NODE_OPTIONS=--max_old_space_size=9216 tsc --noEmit harfbuzz-0.0.d.cts"
26
26
  },
27
27
  "dependencies": {
28
- "@girs/freetype2-2.0": "^2.0.0-3.2.6",
29
- "@girs/gjs": "^3.2.6",
30
- "@girs/glib-2.0": "^2.78.0-3.2.6",
31
- "@girs/gobject-2.0": "^2.78.0-3.2.6"
28
+ "@girs/freetype2-2.0": "^2.0.0-3.2.7",
29
+ "@girs/gjs": "^3.2.7",
30
+ "@girs/glib-2.0": "^2.78.0-3.2.7",
31
+ "@girs/gobject-2.0": "^2.78.0-3.2.7"
32
32
  },
33
33
  "devDependencies": {
34
34
  "typescript": "*"