Commit a995f88c authored by Boris Kocherov's avatar Boris Kocherov

disable font obfuscation and use .ttf as extension

parent 58f1d6d3
...@@ -424,7 +424,7 @@ function CFontFileLoader(id) ...@@ -424,7 +424,7 @@ function CFontFileLoader(id)
g_fontNamesEncoder = new ZBase32Encoder(); g_fontNamesEncoder = new ZBase32Encoder();
//var _name = this.Id; //var _name = this.Id;
var _name = g_fontNamesEncoder.Encode(this.Id) + ".js"; var _name = g_fontNamesEncoder.Encode(this.Id) + ".ttf";
xhr.open('GET', basePath + "/" + _name, true); // TODO: xhr.open('GET', basePath + "/" + _name, true); // TODO:
...@@ -482,14 +482,6 @@ function CFontFileLoader(id) ...@@ -482,14 +482,6 @@ function CFontFileLoader(id)
oThis.SetStreamIndex(__font_data_idx); oThis.SetStreamIndex(__font_data_idx);
} }
// decode
var guidOdttf = [0xA0, 0x66, 0xD6, 0x20, 0x14, 0x96, 0x47, 0xfa, 0x95, 0x69, 0xB8, 0x50, 0xB0, 0x41, 0x49, 0x48];
var _stream = g_fonts_streams[g_fonts_streams.length - 1];
var _data = _stream.data;
var _count_decode = Math.min(32, _stream.size);
for (var i = 0; i < _count_decode; ++i)
_data[i] ^= guidOdttf[i % 16];
}; };
xhr.send(null); xhr.send(null);
......
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