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
fe77e642
Commit
fe77e642
authored
Sep 05, 2016
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable font obfuscation and use .ttf as extension
parent
423a3d6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
common/Drawings/Externals.js
common/Drawings/Externals.js
+1
-9
No files found.
common/Drawings/Externals.js
View file @
fe77e642
...
...
@@ -424,7 +424,7 @@ function CFontFileLoader(id)
g_fontNamesEncoder
=
new
ZBase32Encoder
();
//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:
...
...
@@ -482,14 +482,6 @@ function CFontFileLoader(id)
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
);
...
...
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