Use layered font atlas.
Add layers instead of growing in height as more and more glyphs are added. This allows us to return normalized UV coordinates since the dimensions of each layer stay the same.
This commit is contained in:
1 parent
b48edb72e1
commit
e20a28fef7
5 files changed
+136
-149
No files matched your search
@@ -102,8 +102,6 @@ impl App {
|
||||
|
||||
let mode_output = self.current_mode.frame(&mut self.state)?;
|
||||
|
||||
let font_atlas_size = self.state.fonts.font_atlas().size();
|
||||
|
||||
if let Some(font_image_delta) = self.state.fonts.font_atlas_delta() {
|
||||
self.state
|
||||
.texture_manager
|
||||
@@ -118,7 +116,6 @@ impl App {
|
||||
} else {
|
||||
let meshes = self.tessellator.convert_clipped_primitives(
|
||||
mode_output.primitives,
|
||||
font_atlas_size,
|
||||
self.state.window.scale_factor(),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user