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
6ef31345
Commit
6ef31345
authored
May 04, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5f2c7cb0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
common/FontsFreeType/Private/FreeType/base.js
common/FontsFreeType/Private/FreeType/base.js
+1
-0
common/FontsFreeType/Private/FreeType/drivers/cff.js
common/FontsFreeType/Private/FreeType/drivers/cff.js
+2
-2
common/FontsFreeType/font_engine.js
common/FontsFreeType/font_engine.js
+2
-1
common/Native/Wrappers/memory.js
common/Native/Wrappers/memory.js
+4
-3
No files found.
common/FontsFreeType/Private/FreeType/base.js
View file @
6ef31345
...
...
@@ -542,6 +542,7 @@ FT_Stream.prototype =
case
24
:
/* read a byte sequence */
case
25
:
/* skip some bytes */
{
var
len
=
fields
[
ind
].
size
;
if
(
cursor
+
fsize
>
this
.
size
)
{
error
=
FT_Common
.
FT_Err_Invalid_Stream_Operation
;
...
...
common/FontsFreeType/Private/FreeType/drivers/cff.js
View file @
6ef31345
...
...
@@ -4959,7 +4959,7 @@ function cff_decoder_parse_charstrings(decoder, charstring_base, charstring_len)
}
case
FT_Common
.
cff_op_mul
:
tops
args
[
0
]
=
FT_MulFix
(
args
[
0
],
args
[
1
]
);
tops
[
args
]
=
FT_MulFix
(
args
[
0
],
args
[
1
]
);
args
++
;
break
;
...
...
@@ -5700,7 +5700,7 @@ function cff_get_glyph_name(face, glyph_index, buffer, buffer_max)
function
cff_get_name_index
(
face
,
glyph_name
)
{
var
cff
=
face
.
extra
.
data
;
var
charset
=
cf
.
charset
;
var
charset
=
cf
f
.
charset
;
var
psnames
=
FT_FACE_FIND_GLOBAL_SERVICE
(
face
,
FT_SERVICE_ID_POSTSCRIPT_CMAPS
);
if
(
psnames
==
null
)
...
...
common/FontsFreeType/font_engine.js
View file @
6ef31345
...
...
@@ -907,6 +907,7 @@ FT_Stream.prototype =
case 24: /* read a byte sequence */
case 25: /* skip some bytes */
{
var len = fields[ind].size;
if ( cursor + fsize > this.size )
{
error = 85;
...
...
@@ -35868,7 +35869,7 @@ function cff_decoder_parse_charstrings(decoder, charstring_base, charstring_len)
}
case 32:
tops
args[0
] = FT_MulFix( args[0], args[1] );
tops
[args
] = FT_MulFix( args[0], args[1] );
args++;
break;
common/Native/Wrappers/memory.js
View file @
6ef31345
...
...
@@ -583,6 +583,7 @@ function FT_Stream(data, size)
case
24
:
/* read a byte sequence */
case
25
:
/* skip some bytes */
{
var
len
=
arrayFields
[
ind
].
size
;
if
(
cursor
+
fsize
>
this
.
size
)
{
error
=
85
;
...
...
@@ -594,7 +595,7 @@ function FT_Stream(data, size)
if
(
fval
==
24
)
{
data
=
structure
.
data
;
pos
=
structure
.
pos
+
arrayF
ields
[
ind
].
offset
;
pos
=
structure
.
pos
+
f
ields
[
ind
].
offset
;
for
(
var
i
=
0
;
i
<
len
;
i
++
)
data
[
i
]
=
this
.
data
[
cursor
+
i
];
...
...
@@ -661,8 +662,8 @@ function FT_Stream(data, size)
/* finally, store the value in the object */
data
=
structure
.
data
;
pos
=
structure
.
pos
+
arrayF
ields
[
ind
].
offset
;
switch
(
arrayF
ields
[
ind
])
pos
=
structure
.
pos
+
f
ields
[
ind
].
offset
;
switch
(
f
ields
[
ind
])
{
case
1
:
data
[
pos
]
=
value
&
0xFF
;
...
...
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