A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Hopding/fontkit/commit/3bafdbc3656ebba5251f8d4dc77dcc4b6c11afa6 below:

Fix fontkit.d.ts errors · Hopding/fontkit@3bafdbc · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+11

-11

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+11

-11

lines changed Original file line number Diff line number Diff line change

@@ -41,19 +41,19 @@ export interface Path {

41 41

/**

42 42

* Moves the virtual pen to the given x, y coordinates.

43 43

*/

44 -

moveTo(x: number, y: number);

44 +

moveTo(x: number, y: number): void;

45 45 46 46

/**

47 47

* Adds a line to the path from the current point to the

48 48

* given x, y coordinates.

49 49

*/

50 -

lineTo(x: number, y: number);

50 +

lineTo(x: number, y: number): void;

51 51 52 52

/**

53 53

* Adds a quadratic curve to the path from the current point to the

54 54

* given x, y coordinates using cpx, cpy as a control point.

55 55

*/

56 -

quadraticCurveTo(cpx: number, cpy: number, x: number, y: number);

56 +

quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;

57 57 58 58

/**

59 59

* Adds a bezier curve to the path from the current point to the

@@ -66,24 +66,24 @@ export interface Path {

66 66

cp2y: number,

67 67

x: number,

68 68

y: number

69 -

);

69 +

): void,

70 70 71 71

/**

72 72

* Closes the current sub-path by drawing a straight line back to the

73 73

* starting point.

74 74

*/

75 -

closePath();

75 +

closePath(): void,

76 76 77 77

/**

78 78

* Compiles the path to a JavaScript function that can be applied with a

79 79

* graphics context in order to render the path.

80 80

*/

81 -

toFunction();

81 +

toFunction(): Function,

82 82 83 83

/**

84 84

* Converts the path to an SVG path data string.

85 85

*/

86 -

toSVG();

86 +

toSVG(): string;

87 87

}

88 88 89 89

/**

@@ -126,15 +126,15 @@ export interface Glyph {

126 126

* Renders the glyph to the given graphics context, at the specified

127 127

* font size.

128 128

*/

129 -

render(context: any, size: number);

129 +

render(context: any, size: number): void;

130 130 131 131

// Color Glyph Properties/Methods

132 132

/**

133 133

* For SBIX glyphs, which are bitmap based, this returns an object containing

134 134

* some properties about the image, along with the image data itself

135 135

* (usually PNG).

136 136

*/

137 -

getImageForSize(size: number);

137 +

getImageForSize(size: number): Buffer;

138 138 139 139

/**

140 140

* For COLR glyphs, which are vector based, this returns an array of objects

@@ -230,13 +230,13 @@ export interface Subset {

230 230

/**

231 231

* Includes the given glyph object or glyph ID in the subset.

232 232

*/

233 -

includeGlyph(glyph: number | Glyph);

233 +

includeGlyph(glyph: number | Glyph): void;

234 234 235 235

/**

236 236

* Returns a stream containing the encoded font file that can be piped to a

237 237

* destination, such as a file.

238 238

*/

239 -

encodeStream();

239 +

encodeStream(): void;

240 240

}

241 241 242 242

/**

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4