core: Don't make Font/GlyphSource Clone, it's super wasteful if something did actually clone it
This commit is contained in:
parent
8d71ab3436
commit
bcf47622f0
|
@ -60,7 +60,7 @@ impl EvalParameters {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug)]
|
||||||
pub enum GlyphSource {
|
pub enum GlyphSource {
|
||||||
Memory {
|
Memory {
|
||||||
/// The list of glyphs defined in the font.
|
/// The list of glyphs defined in the font.
|
||||||
|
@ -132,7 +132,7 @@ impl GlyphSource {
|
||||||
#[collect(no_drop)]
|
#[collect(no_drop)]
|
||||||
pub struct Font<'gc>(Gc<'gc, FontData>);
|
pub struct Font<'gc>(Gc<'gc, FontData>);
|
||||||
|
|
||||||
#[derive(Debug, Clone, Collect)]
|
#[derive(Debug, Collect)]
|
||||||
#[collect(require_static)]
|
#[collect(require_static)]
|
||||||
struct FontData {
|
struct FontData {
|
||||||
glyphs: GlyphSource,
|
glyphs: GlyphSource,
|
||||||
|
|
Loading…
Reference in New Issue