Render emojis
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
fff1d9c631
commit
cdcdccfb89
7 changed files with 255 additions and 56 deletions
|
@ -2,7 +2,7 @@ use super::atlas::AtlasAllocator;
|
|||
use crate::{
|
||||
fonts::{FontId, GlyphId},
|
||||
geometry::vector::{vec2f, Vector2F, Vector2I},
|
||||
platform,
|
||||
platform::{self, RasterizationOptions},
|
||||
};
|
||||
use collections::hash_map::Entry;
|
||||
use metal::{MTLPixelFormat, TextureDescriptor};
|
||||
|
@ -113,6 +113,7 @@ impl SpriteCache {
|
|||
glyph_id,
|
||||
subpixel_shift,
|
||||
scale_factor,
|
||||
RasterizationOptions::Alpha,
|
||||
)?;
|
||||
|
||||
let (alloc_id, atlas_bounds) = atlases
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue