Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
fa103c1d
Commit
fa103c1d
authored
Apr 25, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/FontsFreeType/FontFile to function-closure
parent
997960dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
common/FontsFreeType/FontFile.js
common/FontsFreeType/FontFile.js
+8
-1
common/FontsFreeType/FontManager.js
common/FontsFreeType/FontManager.js
+2
-1
No files found.
common/FontsFreeType/FontFile.js
View file @
fa103c1d
"
use strict
"
;
"
use strict
"
;
(
function
(
window
,
undefined
){
// Import
// Import
var
FT_Get_Sfnt_Table
=
AscFonts
.
FT_Get_Sfnt_Table
;
var
FT_Get_Sfnt_Table
=
AscFonts
.
FT_Get_Sfnt_Table
;
var
FT_Matrix
=
AscFonts
.
FT_Matrix
;
var
FT_Matrix
=
AscFonts
.
FT_Matrix
;
...
@@ -1759,4 +1761,9 @@ function CFontFile(fileName, faceIndex)
...
@@ -1759,4 +1761,9 @@ function CFontFile(fileName, faceIndex)
worker
.
_e
();
worker
.
_e
();
}
}
}
}
};
}
\ No newline at end of file
//--------------------------------------------------------export------------------------------------------------------
window
[
'
AscFonts
'
]
=
window
[
'
AscFonts
'
]
||
{};
window
[
'
AscFonts
'
].
CFontFile
=
CFontFile
;
})(
window
);
common/FontsFreeType/FontManager.js
View file @
fa103c1d
...
@@ -5,6 +5,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args;
...
@@ -5,6 +5,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args;
var
FT_Library
=
AscFonts
.
FT_Library
;
var
FT_Library
=
AscFonts
.
FT_Library
;
var
FT_Set_Char_Size
=
AscFonts
.
FT_Set_Char_Size
;
var
FT_Set_Char_Size
=
AscFonts
.
FT_Set_Char_Size
;
var
raster_memory
=
AscFonts
.
raster_memory
;
var
raster_memory
=
AscFonts
.
raster_memory
;
var
CFontFile
=
AscFonts
.
CFontFile
;
var
AscBrowser
=
AscCommon
.
AscBrowser
;
var
AscBrowser
=
AscCommon
.
AscBrowser
;
...
@@ -231,7 +232,7 @@ CGlyphData.prototype =
...
@@ -231,7 +232,7 @@ CGlyphData.prototype =
ctxD
.
putImageData
(
pixDst
,
0
,
0
,
0
,
0
,
w
,
h
);
ctxD
.
putImageData
(
pixDst
,
0
,
0
,
0
,
0
,
w
,
h
);
}
}
}
}
}
}
;
function
TGlyphBitmap
()
function
TGlyphBitmap
()
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment