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
e55cad91
Commit
e55cad91
authored
May 04, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugs
parent
fb7b9641
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
30 deletions
+30
-30
common/FontsFreeType/Private/FreeType/base.js
common/FontsFreeType/Private/FreeType/base.js
+3
-3
common/FontsFreeType/Private/FreeType/drivers/truetype.js
common/FontsFreeType/Private/FreeType/drivers/truetype.js
+1
-1
common/FontsFreeType/Private/FreeType/drivers/ttinterp.js
common/FontsFreeType/Private/FreeType/drivers/ttinterp.js
+1
-1
common/FontsFreeType/Private/FreeType/modules/psaux.js
common/FontsFreeType/Private/FreeType/modules/psaux.js
+1
-1
common/FontsFreeType/Private/FreeType/modules/sfnt.js
common/FontsFreeType/Private/FreeType/modules/sfnt.js
+9
-9
common/FontsFreeType/font_engine.js
common/FontsFreeType/font_engine.js
+15
-15
No files found.
common/FontsFreeType/Private/FreeType/base.js
View file @
e55cad91
...
...
@@ -553,7 +553,7 @@ FT_Stream.prototype =
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
];
...
...
@@ -620,8 +620,8 @@ FT_Stream.prototype =
/* 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
;
...
...
common/FontsFreeType/Private/FreeType/drivers/truetype.js
View file @
e55cad91
...
...
@@ -1094,7 +1094,7 @@ function TT_Vary_Get_Glyph_Deltas(face, glyph_index, n_points)
stream
.
cur
=
here
;
}
for
(
i
=
0
;
i
<
(
tupleCount
&
GX_TC_TUPLE_COUNT_MASK
);
++
i
)
for
(
i
=
0
;
i
<
(
tupleCount
&
FT_Common
.
GX_TC_TUPLE_COUNT_MASK
);
++
i
)
{
var
tupleDataSize
=
stream
.
GetUShort
();
var
tupleIndex
=
stream
.
GetUShort
();
...
...
common/FontsFreeType/Private/FreeType/drivers/ttinterp.js
View file @
e55cad91
...
...
@@ -1175,7 +1175,7 @@ function Ins_SxVTL(exc, aIdx1, aIdx2, aOpc, Vec)
if
((
aIdx1
>=
exc
.
zp2
.
n_points
)
||
(
aIdx2
>=
exc
.
zp1
.
n_points
))
{
if
(
exc
.
pedantic_hinting
)
exc
.
error
=
FT_Err_Invalid_Reference
;
exc
.
error
=
FT_
Common
.
FT_
Err_Invalid_Reference
;
return
1
;
}
...
...
common/FontsFreeType/Private/FreeType/modules/psaux.js
View file @
e55cad91
...
...
@@ -2426,7 +2426,7 @@ function ps_tocoordarray(cur, limit, max_coords, coords)
var
old_cur
=
cur
.
pos
;
if
(
coords
!=
NULL
&&
count
>=
max_coords
)
if
(
coords
!=
null
&&
count
>=
max_coords
)
break
;
/* call PS_Conv_ToFixed() even if coords == NULL */
...
...
common/FontsFreeType/Private/FreeType/modules/sfnt.js
View file @
e55cad91
...
...
@@ -229,7 +229,7 @@ function sfnt_get_charset_id(face,acharset_encoding,acharset_registry)
FT_Error
=
tt_face_find_bdf_prop
(
face
,
"
CHARSET_ENCODING
"
,
encoding
);
if
(
FT_Error
==
0
)
{
if
(
registry
.
type
==
BDF_PROPERTY_TYPE_ATOM
&&
encoding
.
type
==
BDF_PROPERTY_TYPE_ATOM
)
if
(
registry
.
type
==
FT_Common
.
BDF_PROPERTY_TYPE_ATOM
&&
encoding
.
type
==
FT_Common
.
BDF_PROPERTY_TYPE_ATOM
)
{
return
{
enc
:
encoding
.
u
,
reg
:
registry
.
u
};
}
...
...
@@ -2840,7 +2840,7 @@ function tt_cmap4_char_map_linear(cmap, _charcode, next)
if
(
next
!=
0
&&
gindex
!=
0
)
return
{
gindex
:
gindex
,
char_code
:
charcode
};
return
{
gindex
:
gindex
,
char_code
:
_char
_
code
};
return
{
gindex
:
gindex
,
char_code
:
_charcode
};
}
function
tt_cmap4_char_map_binary
(
cmap
,
_charcode
,
next
)
{
...
...
@@ -3659,7 +3659,7 @@ function tt_cmap12_char_map_binary(cmap, _char_code, next)
cmap
.
valid
=
1
;
cmap
.
cur_charcode
=
char_code
;
cmap
12
.
cur_group
=
mid
;
cmap
.
cur_group
=
mid
;
if
(
gindex
==
0
)
{
...
...
@@ -3689,7 +3689,7 @@ function tt_cmap12_char_next(cmap, _char_code)
if
(
cmap
.
cur_charcode
>=
0xFFFFFFFF
)
return
{
gindex
:
gindex
,
char_code
:
__char_code
};
if
(
cmap
12
.
valid
==
1
&&
cmap
.
cur_charcode
==
_char_code
)
if
(
cmap
.
valid
==
1
&&
cmap
.
cur_charcode
==
_char_code
)
{
tt_cmap12_next
(
cmap
);
if
(
1
==
cmap
.
valid
)
...
...
@@ -3869,7 +3869,7 @@ function tt_cmap13_char_map_binary(cmap, _char_code, next)
if
(
gindex
==
0
)
{
tt_cmap13_next
(
cmap
13
);
tt_cmap13_next
(
cmap
);
if
(
cmap
.
valid
==
1
)
gindex
=
cmap
.
cur_gindex
;
}
...
...
@@ -3906,7 +3906,7 @@ function tt_cmap13_char_next(cmap, _char_code)
gindex
=
0
;
}
else
return
tt_cmap13_char_map_binary
(
cmap
,
p
char_code
,
1
);
return
tt_cmap13_char_map_binary
(
cmap
,
_
char_code
,
1
);
return
{
gindex
:
gindex
,
char_code
:
__char_code
};
}
...
...
@@ -3919,7 +3919,7 @@ function tt_cmap13_class_rec()
var
p
=
dublicate_pointer
(
table
);
var
base
=
p
.
pos
;
if
(
bae
+
16
>
valid
.
limit
)
if
(
ba
s
e
+
16
>
valid
.
limit
)
return
FT_Common
.
FT_Err_Invalid_Table
;
p
.
pos
=
base
+
4
;
...
...
@@ -4280,13 +4280,13 @@ function tt_cmap14_variant_chars(cmap, memory, variantSelector)
{
var
__pp
=
dublicate_pointer
(
_cmap_data
);
__pp
+=
defOff
;
return
tt_cmap14_get_def_chars
(
cmap
,
_p
,
memory
);
return
tt_cmap14_get_def_chars
(
cmap
,
_
_p
p
,
memory
);
}
if
(
dcnt
==
0
)
{
var
__pp
=
dublicate_pointer
(
_cmap_data
);
__pp
+=
nondefOff
;
return
tt_cmap14_get_nondef_chars
(
cmap
,
__p
,
memory
);
return
tt_cmap14_get_nondef_chars
(
cmap
,
__p
p
,
memory
);
}
if
(
0
!=
tt_cmap14_ensure
(
cmap
,
(
dcnt
+
numMappings
+
1
),
memory
))
...
...
common/FontsFreeType/font_engine.js
View file @
e55cad91
...
...
@@ -918,7 +918,7 @@ FT_Stream.prototype =
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];
...
...
@@ -985,8 +985,8 @@ FT_Stream.prototype =
/* 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;
...
...
@@ -10455,7 +10455,7 @@ function ps_tocoordarray(cur, limit, max_coords, coords)
var old_cur = cur.pos;
if ( coords !=
NULL
&& count >= max_coords )
if ( coords !=
null
&& count >= max_coords )
break;
/* call PS_Conv_ToFixed() even if coords == NULL */
...
...
@@ -12861,7 +12861,7 @@ function sfnt_get_charset_id(face,acharset_encoding,acharset_registry)
FT_Error = tt_face_find_bdf_prop(face, "CHARSET_ENCODING", encoding);
if (FT_Error == 0)
{
if (registry.type ==
BDF_PROPERTY_TYPE_ATOM && encoding.type == BDF_PROPERTY_TYPE_ATOM
)
if (registry.type ==
1 && encoding.type == 1
)
{
return {enc:encoding.u,reg:registry.u};
}
...
...
@@ -15473,7 +15473,7 @@ function tt_cmap4_char_map_linear(cmap, _charcode, next)
if (next != 0 && gindex != 0)
return {gindex:gindex,char_code:charcode};
return {gindex:gindex,char_code:_char
_
code};
return {gindex:gindex,char_code:_charcode};
}
function tt_cmap4_char_map_binary(cmap, _charcode, next)
{
...
...
@@ -16292,7 +16292,7 @@ function tt_cmap12_char_map_binary(cmap, _char_code, next)
cmap.valid = 1;
cmap.cur_charcode = char_code;
cmap
12
.cur_group = mid;
cmap.cur_group = mid;
if (gindex == 0)
{
...
...
@@ -16322,7 +16322,7 @@ function tt_cmap12_char_next(cmap, _char_code)
if (cmap.cur_charcode >= 0xFFFFFFFF)
return {gindex:gindex,char_code:__char_code};
if (cmap
12
.valid == 1 && cmap.cur_charcode == _char_code)
if (cmap.valid == 1 && cmap.cur_charcode == _char_code)
{
tt_cmap12_next(cmap);
if (1 == cmap.valid)
...
...
@@ -16502,7 +16502,7 @@ function tt_cmap13_char_map_binary(cmap, _char_code, next)
if (gindex == 0)
{
tt_cmap13_next( cmap
13
);
tt_cmap13_next( cmap );
if (cmap.valid == 1)
gindex = cmap.cur_gindex;
}
...
...
@@ -16539,7 +16539,7 @@ function tt_cmap13_char_next(cmap, _char_code)
gindex = 0;
}
else
return tt_cmap13_char_map_binary( cmap,
p
char_code, 1 );
return tt_cmap13_char_map_binary( cmap,
_
char_code, 1 );
return {gindex:gindex,char_code:__char_code};
}
...
...
@@ -16552,7 +16552,7 @@ function tt_cmap13_class_rec()
var p = dublicate_pointer(table);
var base = p.pos;
if (bae + 16 > valid.limit)
if (ba
s
e + 16 > valid.limit)
return 8;
p.pos = base + 4;
...
...
@@ -16913,13 +16913,13 @@ function tt_cmap14_variant_chars(cmap, memory, variantSelector)
{
var __pp = dublicate_pointer(_cmap_data);
__pp += defOff;
return tt_cmap14_get_def_chars(cmap, _p, memory);
return tt_cmap14_get_def_chars(cmap, _
_p
p, memory);
}
if (dcnt == 0)
{
var __pp = dublicate_pointer(_cmap_data);
__pp += nondefOff;
return tt_cmap14_get_nondef_chars(cmap, __p, memory);
return tt_cmap14_get_nondef_chars(cmap, __p
p
, memory);
}
if (0 != tt_cmap14_ensure(cmap, (dcnt + numMappings + 1), memory))
...
...
@@ -21784,7 +21784,7 @@ function Ins_SxVTL(exc, aIdx1, aIdx2, aOpc, Vec)
if ((aIdx1 >= exc.zp2.n_points) || (aIdx2 >= exc.zp1.n_points))
{
if (exc.pedantic_hinting)
exc.error =
FT_Err_Invalid_Reference
;
exc.error =
0x86
;
return 1;
}
...
...
@@ -28167,7 +28167,7 @@ function TT_Vary_Get_Glyph_Deltas(face, glyph_index, n_points)
stream.cur = here;
}
for ( i = 0; i < ( tupleCount &
GX_TC_TUPLE_COUNT_MASK
); ++i )
for ( i = 0; i < ( tupleCount &
0x0FFF
); ++i )
{
var tupleDataSize = stream.GetUShort();
var tupleIndex = stream.GetUShort();
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