Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
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
onlyoffice_core
Commits
a279763f
Commit
a279763f
authored
Mar 28, 2016
by
Oleg Korshul
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Субпиксельный рендеринг текста
parent
0723ad34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
DesktopEditor/graphics/Graphics.cpp
DesktopEditor/graphics/Graphics.cpp
+5
-0
DesktopEditor/graphics/Graphics.h
DesktopEditor/graphics/Graphics.h
+2
-0
No files found.
DesktopEditor/graphics/Graphics.cpp
View file @
a279763f
...
...
@@ -67,6 +67,8 @@ namespace Aggplus
#endif
m_dDpiTile
=
-
1
;
m_nTextRenderMode
=
FT_RENDER_MODE_NORMAL
;
}
CGraphics
::
CGraphics
(
CImage
*
pImage
)
:
m_dwConfigFlags
(
0
)
...
...
@@ -103,6 +105,8 @@ namespace Aggplus
#endif
m_dDpiTile
=
-
1
;
m_nTextRenderMode
=
FT_RENDER_MODE_NORMAL
;
}
CGraphics
::~
CGraphics
()
...
...
@@ -1062,6 +1066,7 @@ namespace Aggplus
oM1
.
TransformPoint
(
_x
,
_y
);
pFont
->
SetTextMatrix
((
float
)
mass
[
0
],
(
float
)
mass
[
1
],
(
float
)
mass
[
2
],
(
float
)
mass
[
3
],
(
float
)
mass
[
4
],
(
float
)
mass
[
5
]);
m_nTextRenderMode
=
pFont
->
m_nRENDER_MODE
;
pFont
->
LoadString2C
(
lText
,
(
float
)
_x
,
(
float
)
_y
);
float
fX
=
0
;
...
...
DesktopEditor/graphics/Graphics.h
View file @
a279763f
...
...
@@ -287,6 +287,8 @@ public:
double
m_dDpiTile
;
CGraphics_ClipState
m_oClipState
;
int
m_nTextRenderMode
;
public:
...
...
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