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
d2c9e39c
Commit
d2c9e39c
authored
Jun 29, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct font pick algorithm
parent
d645e5dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
common/FontsFreeType/font_map.js
common/FontsFreeType/font_map.js
+11
-3
No files found.
common/FontsFreeType/font_map.js
View file @
d2c9e39c
...
...
@@ -316,7 +316,8 @@ function FD_FontDictionary()
[
"
OpenSymbol
"
],
[
"
Arial
"
,
"
Liberation Sans
"
,
"
Helvetica
"
,
"
Nimbus Sans L
"
],
[
"
Times New Roman
"
,
"
Liberation Serif
"
],
[
"
Courier New
"
,
"
Liberation Mono
"
]
[
"
Courier New
"
,
"
Liberation Mono
"
],
[
"
Segoe
"
,
"
Segoe UI
"
]
];
this
.
FD_Ascii_Font_Like_Main
=
{
"
Cambria Math
"
:
0
,
...
...
@@ -336,7 +337,10 @@ function FD_FontDictionary()
"
Liberation Serif
"
:
3
,
"
Courier New
"
:
4
,
"
Liberation Mono
"
:
4
"
Liberation Mono
"
:
4
,
"
Segoe
"
:
5
,
"
Segoe UI
"
:
5
};
this
.
ChangeGlyphsMap
=
{
...
...
@@ -1165,7 +1169,11 @@ CFontSelect.prototype =
return
0
;
if
(
-
1
!=
sReqName
.
indexOf
(
this
.
m_wsFontName
)
||
-
1
!=
this
.
m_wsFontName
.
indexOf
(
sReqName
))
{
if
(
g_fontApplication
.
g_fontDictionary
.
CheckLikeFonts
(
this
.
m_wsFontName
,
sReqName
))
return
700
;
return
1000
;
}
if
(
g_fontApplication
.
g_fontDictionary
.
CheckLikeFonts
(
this
.
m_wsFontName
,
sReqName
))
return
1000
;
...
...
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