@girs/pangoft2-1.0 1.0.0-3.0.0-beta.12

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 ADDED
@@ -0,0 +1,31 @@
1
+
2
+ # PangoFT2-1.0
3
+
4
+ GJS TypeScript type definitions for PangoFT2-1.0, generated from library version 1.0.0 using [ts-for-gir](https://github.com/gjsify/ts-for-gjs) v3.0.0-beta.12.
5
+
6
+ ## Install
7
+
8
+ To use this type definitions, install them with NPM like this:
9
+ ```bash
10
+ npm install @girs/pangoft2-1.0
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ You can import this package into your project like this:
16
+ ```ts
17
+ import PangoFT2 from '@girs/pangoft2-1.0';
18
+ ```
19
+
20
+ Or if you prefer CommonJS, you can also use this:
21
+ ```ts
22
+ const PangoFT2 = require('@girs/pangoft2-1.0');
23
+ ```
24
+
25
+ If you use [ambient modules](https://github.com/gjsify/ts-for-gir/tree/main/packages/cli#ambient-modules), you can also import this module like you would do this in JavaScript:
26
+
27
+ ```ts
28
+ import PangoFT2 from 'gi://PangoFT2?version=1.0';
29
+ ```
30
+
31
+ Depending on your project configuration, it is recommended to use a bundler like [esbuild](https://esbuild.github.io/). You can find examples using different bundlers [here](https://github.com/gjsify/ts-for-gir/tree/main/examples).
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@girs/pangoft2-1.0",
3
+ "version": "1.0.0-3.0.0-beta.12",
4
+ "description": "GJS TypeScript type definitions for PangoFT2-1.0, generated from library version 1.0.0",
5
+ "type": "module",
6
+ "module": "pangoft2-1.0.js",
7
+ "main": "pangoft2-1.0.js",
8
+ "typedoc": {
9
+ "entryPoint": "./pangoft2-1.0.d.ts",
10
+ "readmeFile": "./README.md",
11
+ "displayName": "PangoFT2-1.0",
12
+ "tsconfig": "./tsconfig.doc.json"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": {
17
+ "types": "./pangoft2-1.0.d.ts",
18
+ "default": "./pangoft2-1.0.js"
19
+ },
20
+ "require": {
21
+ "types": "./pangoft2-1.0.d.cts",
22
+ "default": "./pangoft2-1.0.cjs"
23
+ }
24
+ }
25
+ },
26
+ "scripts": {
27
+ "test": "yarn test:esm && yarn test:cjs",
28
+ "test:esm": "tsc --noEmit pangoft2-1.0.d.ts",
29
+ "test:cjs": "tsc --noEmit pangoft2-1.0.d.cts"
30
+ },
31
+ "dependencies": {
32
+ "@girs/cairo-1.0": "^1.0.0-3.0.0-beta.12",
33
+ "@girs/fontconfig-2.0": "^2.0.0-3.0.0-beta.12",
34
+ "@girs/freetype2-2.0": "^2.0.0-3.0.0-beta.12",
35
+ "@girs/gio-2.0": "^2.75.1-3.0.0-beta.12",
36
+ "@girs/glib-2.0": "^2.75.1-3.0.0-beta.12",
37
+ "@girs/gobject-2.0": "^2.75.1-3.0.0-beta.12",
38
+ "@girs/harfbuzz-0.0": "^6.0.0-3.0.0-beta.12",
39
+ "@girs/pango-1.0": "^1.50.13-3.0.0-beta.12",
40
+ "@girs/pangofc-1.0": "^1.0.0-3.0.0-beta.12"
41
+ },
42
+ "devDependencies": {
43
+ "typescript": "^*"
44
+ },
45
+ "keywords": [
46
+ "Gir",
47
+ "TypeScript",
48
+ "PangoFT2-1.0"
49
+ ],
50
+ "author": "ts-for-gir",
51
+ "license": "Apache-2.0",
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/gjsify/ts-for-gir.git"
55
+ },
56
+ "bugs": {
57
+ "url": "https://github.com/gjsify/ts-for-gir/issues"
58
+ },
59
+ "homepage": "https://github.com/gjsify/ts-for-gir#readme"
60
+ }
@@ -0,0 +1,9 @@
1
+
2
+
3
+ imports.gi.versions.PangoFT2 = '1.0'
4
+ const PangoFT2 = imports.gi.PangoFT2;
5
+
6
+ module.exports = PangoFT2;
7
+
8
+
9
+
@@ -0,0 +1,252 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * PangoFT2-1.0
10
+ */
11
+
12
+ import type freetype2 from '@girs/freetype2-2.0';
13
+ import type PangoFc from '@girs/pangofc-1.0';
14
+ import type fontconfig from '@girs/fontconfig-2.0';
15
+ import type Pango from '@girs/pango-1.0';
16
+ import type cairo from '@girs/cairo-1.0';
17
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
18
+ import type GObject from '@girs/gobject-2.0';
19
+ import type GLib from '@girs/glib-2.0';
20
+ import type Gio from '@girs/gio-2.0';
21
+
22
+ /**
23
+ * Gets the `PangoCoverage` for a `PangoFT2Font`.
24
+ *
25
+ * Use [method`Pango`.Font.get_coverage] instead.
26
+ * @param font a Pango FT2 font
27
+ * @param language a language tag.
28
+ * @returns a `PangoCoverage`
29
+ */
30
+ export function font_get_coverage(font: Pango.Font, language: Pango.Language): Pango.Coverage
31
+ /**
32
+ * Retrieves kerning information for a combination of two glyphs.
33
+ *
34
+ * Use pango_fc_font_kern_glyphs() instead.
35
+ * @param font a `PangoFont`
36
+ * @param left the left `PangoGlyph`
37
+ * @param right the right `PangoGlyph`
38
+ * @returns The amount of kerning (in Pango units) to apply for the given combination of glyphs.
39
+ */
40
+ export function font_get_kerning(font: Pango.Font, left: Pango.Glyph, right: Pango.Glyph): number
41
+ /**
42
+ * Return the index of a glyph suitable for drawing unknown
43
+ * characters with `font,` or %PANGO_GLYPH_EMPTY if no suitable
44
+ * glyph found.
45
+ *
46
+ * If you want to draw an unknown-box for a character that
47
+ * is not covered by the font, use PANGO_GET_UNKNOWN_GLYPH()
48
+ * instead.
49
+ * @param font a `PangoFont`
50
+ * @returns a glyph index into @font, or %PANGO_GLYPH_EMPTY
51
+ */
52
+ export function get_unknown_glyph(font: Pango.Font): Pango.Glyph
53
+ /**
54
+ * Renders a `PangoGlyphString` onto a FreeType2 bitmap.
55
+ * @param bitmap the FreeType2 bitmap onto which to draw the string
56
+ * @param font the font in which to draw the string
57
+ * @param glyphs the glyph string to draw
58
+ * @param x the x position of the start of the string (in pixels)
59
+ * @param y the y position of the baseline (in pixels)
60
+ */
61
+ export function render(bitmap: freetype2.Bitmap, font: Pango.Font, glyphs: Pango.GlyphString, x: number, y: number): void
62
+ /**
63
+ * Render a `PangoLayout` onto a FreeType2 bitmap
64
+ * @param bitmap a FT_Bitmap to render the layout onto
65
+ * @param layout a `PangoLayout`
66
+ * @param x the X position of the left of the layout (in pixels)
67
+ * @param y the Y position of the top of the layout (in pixels)
68
+ */
69
+ export function render_layout(bitmap: freetype2.Bitmap, layout: Pango.Layout, x: number, y: number): void
70
+ /**
71
+ * Render a `PangoLayoutLine` onto a FreeType2 bitmap
72
+ * @param bitmap a FT_Bitmap to render the line onto
73
+ * @param line a `PangoLayoutLine`
74
+ * @param x the x position of start of string (in pixels)
75
+ * @param y the y position of baseline (in pixels)
76
+ */
77
+ export function render_layout_line(bitmap: freetype2.Bitmap, line: Pango.LayoutLine, x: number, y: number): void
78
+ /**
79
+ * Render a `PangoLayoutLine` onto a FreeType2 bitmap, with he
80
+ * location specified in fixed-point Pango units rather than
81
+ * pixels.
82
+ *
83
+ * (Using this will avoid extra inaccuracies from rounding
84
+ * to integer pixels multiple times, even if the final glyph
85
+ * positions are integers.)
86
+ * @param bitmap a FT_Bitmap to render the line onto
87
+ * @param line a `PangoLayoutLine`
88
+ * @param x the x position of start of string (in Pango units)
89
+ * @param y the y position of baseline (in Pango units)
90
+ */
91
+ export function render_layout_line_subpixel(bitmap: freetype2.Bitmap, line: Pango.LayoutLine, x: number, y: number): void
92
+ /**
93
+ * Render a `PangoLayout` onto a FreeType2 bitmap, with he
94
+ * location specified in fixed-point Pango units rather than
95
+ * pixels.
96
+ *
97
+ * (Using this will avoid extra inaccuracies from rounding
98
+ * to integer pixels multiple times, even if the final glyph
99
+ * positions are integers.)
100
+ * @param bitmap a FT_Bitmap to render the layout onto
101
+ * @param layout a `PangoLayout`
102
+ * @param x the X position of the left of the layout (in Pango units)
103
+ * @param y the Y position of the top of the layout (in Pango units)
104
+ */
105
+ export function render_layout_subpixel(bitmap: freetype2.Bitmap, layout: Pango.Layout, x: number, y: number): void
106
+ /**
107
+ * Renders a `PangoGlyphString` onto a FreeType2 bitmap, possibly
108
+ * transforming the layed-out coordinates through a transformation
109
+ * matrix.
110
+ *
111
+ * Note that the transformation matrix for `font` is not
112
+ * changed, so to produce correct rendering results, the `font`
113
+ * must have been loaded using a `PangoContext` with an identical
114
+ * transformation matrix to that passed in to this function.
115
+ * @param bitmap the FreeType2 bitmap onto which to draw the string
116
+ * @param matrix a `PangoMatrix`
117
+ * @param font the font in which to draw the string
118
+ * @param glyphs the glyph string to draw
119
+ * @param x the x position of the start of the string (in Pango units in user space coordinates)
120
+ * @param y the y position of the baseline (in Pango units in user space coordinates)
121
+ */
122
+ export function render_transformed(bitmap: freetype2.Bitmap, matrix: Pango.Matrix | null, font: Pango.Font, glyphs: Pango.GlyphString, x: number, y: number): void
123
+ /**
124
+ * Free the global fontmap. (See pango_ft2_font_map_for_display())
125
+ * Use of the global PangoFT2 fontmap is deprecated.
126
+ */
127
+ export function shutdown_display(): void
128
+ /**
129
+ * Function type for doing final config tweaking on prepared FcPatterns.
130
+ * @callback
131
+ * @param pattern the FcPattern to tweak.
132
+ * @param data user data.
133
+ */
134
+ export interface SubstituteFunc {
135
+ (pattern: fontconfig.Pattern, data: any | null): void
136
+ }
137
+ export module FontMap {
138
+
139
+ // Constructor properties interface
140
+
141
+ export interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, PangoFc.FontMap.ConstructorProperties {
142
+ }
143
+
144
+ }
145
+
146
+ export interface FontMap extends Gio.ListModel {
147
+
148
+ // Owm methods of PangoFT2-1.0.PangoFT2.FontMap
149
+
150
+ /**
151
+ * Sets a function that will be called to do final configuration
152
+ * substitution on a `FcPattern` before it is used to load
153
+ * the font.
154
+ *
155
+ * This function can be used to do things like set
156
+ * hinting and antialiasing options.
157
+ * @param func function to call to to do final config tweaking on #FcPattern objects.
158
+ */
159
+ set_default_substitute(func: SubstituteFunc): void
160
+
161
+ // Overloads of set_default_substitute
162
+
163
+ /**
164
+ * Sets a function that will be called to do final configuration
165
+ * substitution on a `FcPattern` before it is used to load
166
+ * the font.
167
+ *
168
+ * This function can be used to do things like set
169
+ * hinting and antialiasing options.
170
+ * @param func function to call to to do final config tweaking on `FcPattern` objects
171
+ */
172
+ set_default_substitute(func: PangoFc.SubstituteFunc): void
173
+ /**
174
+ * Sets the horizontal and vertical resolutions for the fontmap.
175
+ * @param dpi_x dots per inch in the X direction
176
+ * @param dpi_y dots per inch in the Y direction
177
+ */
178
+ set_resolution(dpi_x: number, dpi_y: number): void
179
+ /**
180
+ * Call this function any time the results of the
181
+ * default substitution function set with
182
+ * pango_ft2_font_map_set_default_substitute() change.
183
+ *
184
+ * That is, if your substitution function will return different
185
+ * results for the same input pattern, you must call this function.
186
+ */
187
+ substitute_changed(): void
188
+
189
+ // Class property signals of PangoFT2-1.0.PangoFT2.FontMap
190
+
191
+ connect(sigName: "notify::item-type", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
192
+ connect_after(sigName: "notify::item-type", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
193
+ emit(sigName: "notify::item-type", ...args: any[]): void
194
+ connect(sigName: "notify::n-items", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
195
+ connect_after(sigName: "notify::n-items", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
196
+ emit(sigName: "notify::n-items", ...args: any[]): void
197
+ connect(sigName: string, callback: (...args: any[]) => void): number
198
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
199
+ emit(sigName: string, ...args: any[]): void
200
+ disconnect(id: number): void
201
+ }
202
+
203
+ /**
204
+ * The `PangoFT2FontMap` is the `PangoFontMap` implementation for FreeType fonts.
205
+ * @class
206
+ */
207
+ export class FontMap extends PangoFc.FontMap {
208
+
209
+ // Own properties of PangoFT2-1.0.PangoFT2.FontMap
210
+
211
+ static name: string
212
+ static $gtype: GObject.GType<FontMap>
213
+
214
+ // Constructors of PangoFT2-1.0.PangoFT2.FontMap
215
+
216
+ constructor(config?: FontMap.ConstructorProperties)
217
+ /**
218
+ * Create a new `PangoFT2FontMap` object.
219
+ *
220
+ * A fontmap is used to cache information about available fonts,
221
+ * and holds certain global parameters such as the resolution and
222
+ * the default substitute function (see
223
+ * [method`PangoFT2`.FontMap.set_default_substitute]).
224
+ * @constructor
225
+ * @returns the newly created fontmap object. Unref with g_object_unref() when you are finished with it.
226
+ */
227
+ constructor()
228
+ /**
229
+ * Create a new `PangoFT2FontMap` object.
230
+ *
231
+ * A fontmap is used to cache information about available fonts,
232
+ * and holds certain global parameters such as the resolution and
233
+ * the default substitute function (see
234
+ * [method`PangoFT2`.FontMap.set_default_substitute]).
235
+ * @constructor
236
+ * @returns the newly created fontmap object. Unref with g_object_unref() when you are finished with it.
237
+ */
238
+ static new(): FontMap
239
+ _init(config?: FontMap.ConstructorProperties): void
240
+ }
241
+
242
+ /**
243
+ * Name of the imported GIR library
244
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
245
+ */
246
+ export const __name__: string
247
+ /**
248
+ * Version of the imported GIR library
249
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
250
+ */
251
+ export const __version__: string
252
+ // END
@@ -0,0 +1,257 @@
1
+
2
+ /*
3
+ * Type Definitions for Gjs (https://gjs.guide/)
4
+ *
5
+ * These type definitions are automatically generated, do not edit them by hand.
6
+ * If you found a bug fix it in `ts-for-gir` or create a bug report on https://github.com/gjsify/ts-for-gjs
7
+ */
8
+ /**
9
+ * PangoFT2-1.0
10
+ */
11
+
12
+ import type freetype2 from '@girs/freetype2-2.0';
13
+ import type PangoFc from '@girs/pangofc-1.0';
14
+ import type fontconfig from '@girs/fontconfig-2.0';
15
+ import type Pango from '@girs/pango-1.0';
16
+ import type cairo from '@girs/cairo-1.0';
17
+ import type HarfBuzz from '@girs/harfbuzz-0.0';
18
+ import type GObject from '@girs/gobject-2.0';
19
+ import type GLib from '@girs/glib-2.0';
20
+ import type Gio from '@girs/gio-2.0';
21
+
22
+ export namespace PangoFT2 {
23
+
24
+ /**
25
+ * Gets the `PangoCoverage` for a `PangoFT2Font`.
26
+ *
27
+ * Use [method`Pango`.Font.get_coverage] instead.
28
+ * @param font a Pango FT2 font
29
+ * @param language a language tag.
30
+ * @returns a `PangoCoverage`
31
+ */
32
+ function font_get_coverage(font: Pango.Font, language: Pango.Language): Pango.Coverage
33
+ /**
34
+ * Retrieves kerning information for a combination of two glyphs.
35
+ *
36
+ * Use pango_fc_font_kern_glyphs() instead.
37
+ * @param font a `PangoFont`
38
+ * @param left the left `PangoGlyph`
39
+ * @param right the right `PangoGlyph`
40
+ * @returns The amount of kerning (in Pango units) to apply for the given combination of glyphs.
41
+ */
42
+ function font_get_kerning(font: Pango.Font, left: Pango.Glyph, right: Pango.Glyph): number
43
+ /**
44
+ * Return the index of a glyph suitable for drawing unknown
45
+ * characters with `font,` or %PANGO_GLYPH_EMPTY if no suitable
46
+ * glyph found.
47
+ *
48
+ * If you want to draw an unknown-box for a character that
49
+ * is not covered by the font, use PANGO_GET_UNKNOWN_GLYPH()
50
+ * instead.
51
+ * @param font a `PangoFont`
52
+ * @returns a glyph index into @font, or %PANGO_GLYPH_EMPTY
53
+ */
54
+ function get_unknown_glyph(font: Pango.Font): Pango.Glyph
55
+ /**
56
+ * Renders a `PangoGlyphString` onto a FreeType2 bitmap.
57
+ * @param bitmap the FreeType2 bitmap onto which to draw the string
58
+ * @param font the font in which to draw the string
59
+ * @param glyphs the glyph string to draw
60
+ * @param x the x position of the start of the string (in pixels)
61
+ * @param y the y position of the baseline (in pixels)
62
+ */
63
+ function render(bitmap: freetype2.Bitmap, font: Pango.Font, glyphs: Pango.GlyphString, x: number, y: number): void
64
+ /**
65
+ * Render a `PangoLayout` onto a FreeType2 bitmap
66
+ * @param bitmap a FT_Bitmap to render the layout onto
67
+ * @param layout a `PangoLayout`
68
+ * @param x the X position of the left of the layout (in pixels)
69
+ * @param y the Y position of the top of the layout (in pixels)
70
+ */
71
+ function render_layout(bitmap: freetype2.Bitmap, layout: Pango.Layout, x: number, y: number): void
72
+ /**
73
+ * Render a `PangoLayoutLine` onto a FreeType2 bitmap
74
+ * @param bitmap a FT_Bitmap to render the line onto
75
+ * @param line a `PangoLayoutLine`
76
+ * @param x the x position of start of string (in pixels)
77
+ * @param y the y position of baseline (in pixels)
78
+ */
79
+ function render_layout_line(bitmap: freetype2.Bitmap, line: Pango.LayoutLine, x: number, y: number): void
80
+ /**
81
+ * Render a `PangoLayoutLine` onto a FreeType2 bitmap, with he
82
+ * location specified in fixed-point Pango units rather than
83
+ * pixels.
84
+ *
85
+ * (Using this will avoid extra inaccuracies from rounding
86
+ * to integer pixels multiple times, even if the final glyph
87
+ * positions are integers.)
88
+ * @param bitmap a FT_Bitmap to render the line onto
89
+ * @param line a `PangoLayoutLine`
90
+ * @param x the x position of start of string (in Pango units)
91
+ * @param y the y position of baseline (in Pango units)
92
+ */
93
+ function render_layout_line_subpixel(bitmap: freetype2.Bitmap, line: Pango.LayoutLine, x: number, y: number): void
94
+ /**
95
+ * Render a `PangoLayout` onto a FreeType2 bitmap, with he
96
+ * location specified in fixed-point Pango units rather than
97
+ * pixels.
98
+ *
99
+ * (Using this will avoid extra inaccuracies from rounding
100
+ * to integer pixels multiple times, even if the final glyph
101
+ * positions are integers.)
102
+ * @param bitmap a FT_Bitmap to render the layout onto
103
+ * @param layout a `PangoLayout`
104
+ * @param x the X position of the left of the layout (in Pango units)
105
+ * @param y the Y position of the top of the layout (in Pango units)
106
+ */
107
+ function render_layout_subpixel(bitmap: freetype2.Bitmap, layout: Pango.Layout, x: number, y: number): void
108
+ /**
109
+ * Renders a `PangoGlyphString` onto a FreeType2 bitmap, possibly
110
+ * transforming the layed-out coordinates through a transformation
111
+ * matrix.
112
+ *
113
+ * Note that the transformation matrix for `font` is not
114
+ * changed, so to produce correct rendering results, the `font`
115
+ * must have been loaded using a `PangoContext` with an identical
116
+ * transformation matrix to that passed in to this function.
117
+ * @param bitmap the FreeType2 bitmap onto which to draw the string
118
+ * @param matrix a `PangoMatrix`
119
+ * @param font the font in which to draw the string
120
+ * @param glyphs the glyph string to draw
121
+ * @param x the x position of the start of the string (in Pango units in user space coordinates)
122
+ * @param y the y position of the baseline (in Pango units in user space coordinates)
123
+ */
124
+ function render_transformed(bitmap: freetype2.Bitmap, matrix: Pango.Matrix | null, font: Pango.Font, glyphs: Pango.GlyphString, x: number, y: number): void
125
+ /**
126
+ * Free the global fontmap. (See pango_ft2_font_map_for_display())
127
+ * Use of the global PangoFT2 fontmap is deprecated.
128
+ */
129
+ function shutdown_display(): void
130
+ /**
131
+ * Function type for doing final config tweaking on prepared FcPatterns.
132
+ * @callback
133
+ * @param pattern the FcPattern to tweak.
134
+ * @param data user data.
135
+ */
136
+ interface SubstituteFunc {
137
+ (pattern: fontconfig.Pattern, data: any | null): void
138
+ }
139
+ module FontMap {
140
+
141
+ // Constructor properties interface
142
+
143
+ interface ConstructorProperties extends Gio.ListModel.ConstructorProperties, PangoFc.FontMap.ConstructorProperties {
144
+ }
145
+
146
+ }
147
+
148
+ interface FontMap extends Gio.ListModel {
149
+
150
+ // Owm methods of PangoFT2-1.0.PangoFT2.FontMap
151
+
152
+ /**
153
+ * Sets a function that will be called to do final configuration
154
+ * substitution on a `FcPattern` before it is used to load
155
+ * the font.
156
+ *
157
+ * This function can be used to do things like set
158
+ * hinting and antialiasing options.
159
+ * @param func function to call to to do final config tweaking on #FcPattern objects.
160
+ */
161
+ set_default_substitute(func: SubstituteFunc): void
162
+
163
+ // Overloads of set_default_substitute
164
+
165
+ /**
166
+ * Sets a function that will be called to do final configuration
167
+ * substitution on a `FcPattern` before it is used to load
168
+ * the font.
169
+ *
170
+ * This function can be used to do things like set
171
+ * hinting and antialiasing options.
172
+ * @param func function to call to to do final config tweaking on `FcPattern` objects
173
+ */
174
+ set_default_substitute(func: PangoFc.SubstituteFunc): void
175
+ /**
176
+ * Sets the horizontal and vertical resolutions for the fontmap.
177
+ * @param dpi_x dots per inch in the X direction
178
+ * @param dpi_y dots per inch in the Y direction
179
+ */
180
+ set_resolution(dpi_x: number, dpi_y: number): void
181
+ /**
182
+ * Call this function any time the results of the
183
+ * default substitution function set with
184
+ * pango_ft2_font_map_set_default_substitute() change.
185
+ *
186
+ * That is, if your substitution function will return different
187
+ * results for the same input pattern, you must call this function.
188
+ */
189
+ substitute_changed(): void
190
+
191
+ // Class property signals of PangoFT2-1.0.PangoFT2.FontMap
192
+
193
+ connect(sigName: "notify::item-type", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
194
+ connect_after(sigName: "notify::item-type", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
195
+ emit(sigName: "notify::item-type", ...args: any[]): void
196
+ connect(sigName: "notify::n-items", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
197
+ connect_after(sigName: "notify::n-items", callback: (($obj: FontMap, pspec: GObject.ParamSpec) => void)): number
198
+ emit(sigName: "notify::n-items", ...args: any[]): void
199
+ connect(sigName: string, callback: (...args: any[]) => void): number
200
+ connect_after(sigName: string, callback: (...args: any[]) => void): number
201
+ emit(sigName: string, ...args: any[]): void
202
+ disconnect(id: number): void
203
+ }
204
+
205
+ /**
206
+ * The `PangoFT2FontMap` is the `PangoFontMap` implementation for FreeType fonts.
207
+ * @class
208
+ */
209
+ class FontMap extends PangoFc.FontMap {
210
+
211
+ // Own properties of PangoFT2-1.0.PangoFT2.FontMap
212
+
213
+ static name: string
214
+ static $gtype: GObject.GType<FontMap>
215
+
216
+ // Constructors of PangoFT2-1.0.PangoFT2.FontMap
217
+
218
+ constructor(config?: FontMap.ConstructorProperties)
219
+ /**
220
+ * Create a new `PangoFT2FontMap` object.
221
+ *
222
+ * A fontmap is used to cache information about available fonts,
223
+ * and holds certain global parameters such as the resolution and
224
+ * the default substitute function (see
225
+ * [method`PangoFT2`.FontMap.set_default_substitute]).
226
+ * @constructor
227
+ * @returns the newly created fontmap object. Unref with g_object_unref() when you are finished with it.
228
+ */
229
+ constructor()
230
+ /**
231
+ * Create a new `PangoFT2FontMap` object.
232
+ *
233
+ * A fontmap is used to cache information about available fonts,
234
+ * and holds certain global parameters such as the resolution and
235
+ * the default substitute function (see
236
+ * [method`PangoFT2`.FontMap.set_default_substitute]).
237
+ * @constructor
238
+ * @returns the newly created fontmap object. Unref with g_object_unref() when you are finished with it.
239
+ */
240
+ static new(): FontMap
241
+ _init(config?: FontMap.ConstructorProperties): void
242
+ }
243
+
244
+ /**
245
+ * Name of the imported GIR library
246
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L188
247
+ */
248
+ const __name__: string
249
+ /**
250
+ * Version of the imported GIR library
251
+ * @see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/ns.cpp#L189
252
+ */
253
+ const __version__: string
254
+ }
255
+
256
+ export default PangoFT2;
257
+ // END
@@ -0,0 +1,8 @@
1
+
2
+
3
+ // @ts-expect-error
4
+ import PangoFT2 from 'gi://PangoFT2?version=1.0';
5
+ export { PangoFT2 };
6
+ export default PangoFT2;
7
+
8
+
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ // General settings for code interpretation
4
+ "target": "ESNext",
5
+ "module": "ESNext",
6
+ "experimentalDecorators": true,
7
+ "moduleResolution": "node",
8
+ "noEmit": true,
9
+ "noEmitOnError": false,
10
+ "baseUrl": "./",
11
+ "rootDir": ".",
12
+ // General settings for code generation
13
+ "removeComments": false,
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ "newLine": "LF"
17
+ },
18
+ "include": ["./pangoft2-1.0.d.ts"]
19
+ }