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
f34ee9a1
Commit
f34ee9a1
authored
Apr 25, 2016
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/FontsFreeType/FontFile to function-closure
parent
3398a2e0
Changes
2
Hide 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 @
f34ee9a1
...
...
@@ -24,6 +24,8 @@
*/
"
use strict
"
;
(
function
(
window
,
undefined
){
// Import
var
FT_Get_Sfnt_Table
=
AscFonts
.
FT_Get_Sfnt_Table
;
var
FT_Matrix
=
AscFonts
.
FT_Matrix
;
...
...
@@ -1783,4 +1785,9 @@ function CFontFile(fileName, faceIndex)
worker
.
_e
();
}
}
};
\ No newline at end of file
}
//--------------------------------------------------------export------------------------------------------------------
window
[
'
AscFonts
'
]
=
window
[
'
AscFonts
'
]
||
{};
window
[
'
AscFonts
'
].
CFontFile
=
CFontFile
;
})(
window
);
common/FontsFreeType/FontManager.js
View file @
f34ee9a1
...
...
@@ -29,6 +29,7 @@ var FT_Open_Args = AscFonts.FT_Open_Args;
var
FT_Library
=
AscFonts
.
FT_Library
;
var
FT_Set_Char_Size
=
AscFonts
.
FT_Set_Char_Size
;
var
raster_memory
=
AscFonts
.
raster_memory
;
var
CFontFile
=
AscFonts
.
CFontFile
;
var
AscBrowser
=
AscCommon
.
AscBrowser
;
...
...
@@ -255,7 +256,7 @@ CGlyphData.prototype =
ctxD
.
putImageData
(
pixDst
,
0
,
0
,
0
,
0
,
w
,
h
);
}
}
}
}
;
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