Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayak UI
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Microhacks
Bevy Forks
Kayak UI
Commits
95a31d1a
Commit
95a31d1a
authored
2 years ago
by
John Mitchell
Browse files
Options
Downloads
Patches
Plain Diff
Format code.
parent
e87a0168
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kayak_font/src/ttf/loader.rs
+6
-10
6 additions, 10 deletions
kayak_font/src/ttf/loader.rs
with
6 additions
and
10 deletions
kayak_font/src/ttf/loader.rs
+
6
−
10
View file @
95a31d1a
...
...
@@ -303,20 +303,16 @@ fn calculate_plane(
// t = geometry_scale as f64 * (-translation_y + (h as f64 - 0.5) * inv_box_scale);
// }
let
left
=
loaded_file
.offset_x
.unwrap_or_default
();
let
top
=
loaded_file
.offset_y
.unwrap_or_default
();
let
left
=
loaded_file
.offset_x
.unwrap_or_default
();
let
top
=
loaded_file
.offset_y
.unwrap_or_default
();
(
Vector2
::
new
(
translation_x
,
translation_y
)
*
geometry_scale
as
f64
,
Rect
{
left
:
left
*
geometry_scale
,
// l as f32,
bottom
:
0.0
,
// b as f32,
right
:
0.0
,
// r as f32,
top
:
top
*
geometry_scale
,
//0.0, // t as f32,
left
:
left
*
geometry_scale
,
// l as f32,
bottom
:
0.0
,
// b as f32,
right
:
0.0
,
// r as f32,
top
:
top
*
geometry_scale
,
//0.0, // t as f32,
},
)
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment