Skip to content

Commit

Permalink
Update fonts.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Oct 12, 2024
1 parent 23728e1 commit d9a540b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/epaint/src/text/fonts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ impl FontsImpl {
"pixels_per_point out of range: {pixels_per_point}"
);

let texture_width = max_texture_side.at_most(8 * 1024);
let texture_width = max_texture_side.at_most(16 * 1024);
let initial_height = 32; // Keep initial font atlas small, so it is fast to upload to GPU. This will expand as needed anyways.
let atlas = TextureAtlas::new([texture_width, initial_height]);

Expand Down

0 comments on commit d9a540b

Please sign in to comment.