Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
FreeType
FreeType Demo Programs
Commits
f0629006
Commit
f0629006
authored
Feb 18, 2021
by
Alexei Podtelezhnikov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/ftcommon.c (FTDemo_String_Draw): Control pen position better.
parent
2a0da9d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
ChangeLog
ChangeLog
+4
-0
src/ftcommon.c
src/ftcommon.c
+5
-4
No files found.
ChangeLog
View file @
f0629006
2021-02-18 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftcommon.c (FTDemo_String_Draw): Control pen position better.
2021-02-18 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftstring.c (write_header): Fix header formatting.
...
...
src/ftcommon.c
View file @
f0629006
...
...
@@ -1966,13 +1966,14 @@
pen
.
y
+=
handle
->
string
[
n
].
hadvance
.
y
;
}
pen
.
x
=
FT_MulFix
(
pen
.
x
,
sc
->
center
);
pen
.
y
=
FT_MulFix
(
pen
.
y
,
sc
->
center
);
/* round to control initial pen position and preserve hinting... */
pen
.
x
=
FT_MulFix
(
pen
.
x
,
sc
->
center
)
&
~
63
;
pen
.
y
=
FT_MulFix
(
pen
.
y
,
sc
->
center
)
&
~
63
;
/* XXX sbits */
/* get pen position */
/* ... unless rotating; XXX sbits */
FT_Vector_Transform
(
&
pen
,
sc
->
matrix
);
/* get pen position */
pen
.
x
=
(
x
<<
6
)
-
pen
.
x
;
pen
.
y
=
(
y
<<
6
)
-
pen
.
y
;
...
...
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