Commit e03cb633 authored by Oleg Korshul's avatar Oleg Korshul

.

parent 54fe8c7d
......@@ -967,7 +967,7 @@ function T1_Get_Private_Dict(parser, psaux)
parser.private_len = ret.num_bytes;
/* put a safeguard */
parser.private_dict[len] = FT_Common.SYMBOL_CONST_S0;
parser.private_dict[ret.num_bytes] = FT_Common.SYMBOL_CONST_S0;
}
else
{
......
......@@ -866,6 +866,16 @@ function AFM_StreamRec()
this.status = 0;
}
function AFM_ParserRec()
{
this.memory = null;
this.stream = null;
this.FontInfo = null;
this.get_index = null;
this.user_data = null;
}
function AFM_IS_NEWLINE(ch)
{
if (ch == FT_Common.SYMBOL_CONST_SR || ch == FT_Common.SYMBOL_CONST_SN)
......
......@@ -8896,6 +8896,16 @@ function AFM_StreamRec()
this.status = 0;
}
function AFM_ParserRec()
{
this.memory = null;
this.stream = null;
this.FontInfo = null;
this.get_index = null;
this.user_data = null;
}
function AFM_IS_NEWLINE(ch)
{
if (ch == 13 || ch == 10)
......@@ -36610,7 +36620,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 = cff.charset;
var psnames = FT_FACE_FIND_GLOBAL_SERVICE(face, FT_SERVICE_ID_POSTSCRIPT_CMAPS);
if (psnames == null)
......@@ -37844,7 +37854,7 @@ function T1_Get_Private_Dict(parser, psaux)
parser.private_len = ret.num_bytes;
/* put a safeguard */
parser.private_dict[len] = 0;
parser.private_dict[ret.num_bytes] = 0;
}
else
{
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment