Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
harfbuzz
Commits
32348a43
Unverified
Commit
32348a43
authored
6 years ago
by
Ebrahim Byagowi
Committed by
GitHub
6 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix trak table apply logic
In collaboration with Behdad
parent
225b92b7
master
arabic-table-x
bot-check
coverity_scan
decltype
inttype-constructors
iter
metrics
rand
rvalue-reference
test-str-literal-constness
typename-outside-template
use-sinhala
var-subset
2.3.1
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.9.0
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hb-aat-layout-trak-table.hh
+2
-2
src/hb-aat-layout-trak-table.hh
with
2 additions
and
2 deletions
+2
-2
src/hb-aat-layout-trak-table.hh
View file @
32348a43
...
...
@@ -172,7 +172,7 @@ struct trak
hb_position_t
advance_to_add
=
c
->
font
->
em_scalef_x
(
tracking
/
2
);
foreach_grapheme
(
buffer
,
start
,
end
)
{
/* TODO This is wrong. */
buffer
->
pos
[
start
].
x_offset
+=
advance_to_add
;
buffer
->
pos
[
start
].
x_advance
+=
advance_to_add
;
buffer
->
pos
[
end
].
x_advance
+=
advance_to_add
;
}
...
...
@@ -184,7 +184,7 @@ struct trak
hb_position_t
advance_to_add
=
c
->
font
->
em_scalef_y
(
tracking
/
2
);
foreach_grapheme
(
buffer
,
start
,
end
)
{
/* TODO This is wrong. */
buffer
->
pos
[
start
].
y_offset
+=
advance_to_add
;
buffer
->
pos
[
start
].
y_advance
+=
advance_to_add
;
buffer
->
pos
[
end
].
y_advance
+=
advance_to_add
;
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help