mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Name all constructors.
This commit is contained in:
parent
f239d01bde
commit
1ef4c94de2
12 changed files with 223 additions and 213 deletions
16
src/fonts.js
16
src/fonts.js
|
@ -731,8 +731,8 @@ function isSpecialUnicode(unicode) {
|
|||
* var type1Font = new Font("MyFontName", binaryFile, propertiesObject);
|
||||
* type1Font.bind();
|
||||
*/
|
||||
var Font = (function Font() {
|
||||
var constructor = function font_constructor(name, file, properties) {
|
||||
var Font = (function FontClosure() {
|
||||
function Font(name, file, properties) {
|
||||
this.name = name;
|
||||
this.coded = properties.coded;
|
||||
this.charProcIRQueues = properties.charProcIRQueues;
|
||||
|
@ -1222,7 +1222,7 @@ var Font = (function Font() {
|
|||
return nameTable;
|
||||
}
|
||||
|
||||
constructor.prototype = {
|
||||
Font.prototype = {
|
||||
name: null,
|
||||
font: null,
|
||||
mimetype: null,
|
||||
|
@ -2204,7 +2204,7 @@ var Font = (function Font() {
|
|||
}
|
||||
};
|
||||
|
||||
return constructor;
|
||||
return Font;
|
||||
})();
|
||||
|
||||
/*
|
||||
|
@ -3114,9 +3114,9 @@ CFF.prototype = {
|
|||
}
|
||||
};
|
||||
|
||||
var Type2CFF = (function type2CFF() {
|
||||
var Type2CFF = (function Type2CFFClosure() {
|
||||
// TODO: replace parsing code with the Type2Parser in font_utils.js
|
||||
function constructor(file, properties) {
|
||||
function Type2CFF(file, properties) {
|
||||
var bytes = file.getBytes();
|
||||
this.bytes = bytes;
|
||||
this.properties = properties;
|
||||
|
@ -3124,7 +3124,7 @@ var Type2CFF = (function type2CFF() {
|
|||
this.data = this.parse();
|
||||
}
|
||||
|
||||
constructor.prototype = {
|
||||
Type2CFF.prototype = {
|
||||
parse: function cff_parse() {
|
||||
var header = this.parseHeader();
|
||||
var properties = this.properties;
|
||||
|
@ -3668,6 +3668,6 @@ var Type2CFF = (function type2CFF() {
|
|||
}
|
||||
};
|
||||
|
||||
return constructor;
|
||||
return Type2CFF;
|
||||
})();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue