Skip to content

Commit

Permalink
Added types for closure compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ILOVEPIE committed Feb 5, 2023
1 parent 4a57b96 commit 062c7ac
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions externs/opentype.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,32 @@ opentype.Font.prototype.drawMetrics = function(ctx, text, x, y, fontSize, option
*/
opentype.Font.prototype.getEnglishName = function(name) {};

/**
* @typedef {{
fontFamily: Object<string,string>,
fontSubfamily: Object<string,string>,
fullName: Object<string,string>,
// postScriptName may not contain any whitespace
postScriptName: Object<string,string>,
designer: Object<string,string>,
designerURL: Object<string,string>,
manufacturer: Object<string,string>,
manufacturerURL: Object<string,string>,
license: Object<string,string>,
licenseURL: Object<string,string>,
version: Object<string,string>,
description: Object<string,string>,
copyright: Object<string,string>,
trademark: Object<string,string>
};}
*/
var NamePlatform;

/**
* @type {{unicode: ?NamePlatform, macintosh: ?NamePlatform, windows: ?NamePlatform}}
*/
opentype.Font.prototype.names = {};

/**
* Validate
*/
Expand Down

0 comments on commit 062c7ac

Please sign in to comment.