Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
stb_truetype-rs
Commits
39f158a4
Commit
39f158a4
authored
Sep 05, 2018
by
Alex Butler
Browse files
Merge branch 'fix-compound-glyph-signed-positions' into 'master'
Use i8 positions in compound glyphs Closes
#18
See merge request
!25
parents
d0c5dd41
4b92e120
Pipeline
#1253
passed with stages
in 8 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
39f158a4
## master
*
Remove all unsafe usage.
*
Fix glyph positioning bug for compound glyphs (#18)
## 0.2.3
*
Add
`is_collection(&[u8]) -> bool`
.
...
...
src/lib.rs
View file @
39f158a4
...
...
@@ -675,9 +675,9 @@ impl<Data: Deref<Target = [u8]>> FontInfo<Data> {
mtx
[
5
]
=
BE
::
read_i16
(
comp
)
as
f32
;
comp
=
&
comp
[
2
..
];
}
else
{
mtx
[
4
]
=
comp
[
0
]
as
f32
;
mtx
[
4
]
=
(
comp
[
0
]
as
i8
)
as
f32
;
comp
=
&
comp
[
1
..
];
mtx
[
5
]
=
comp
[
0
]
as
f32
;
mtx
[
5
]
=
(
comp
[
0
]
as
i8
)
as
f32
;
comp
=
&
comp
[
1
..
];
}
}
else
{
...
...
Write
Preview
Supports
Markdown
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