mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-08 20:01:30 +11:00
[vello_encoding] Re-export vello_encoding::Glyph from vello
This makes it so that users of the vello crate that use the Glyph type don't need to directly depend on the vello_encoding crate.
This commit is contained in:
parent
3ff490fc13
commit
6d2b98cade
|
@ -12,7 +12,6 @@ repository.workspace = true
|
|||
|
||||
[dependencies]
|
||||
vello = { path = "../../" }
|
||||
vello_encoding = { path = "../../crates/encoding" }
|
||||
vello_svg = { path = "../../integrations/vello_svg" }
|
||||
anyhow = { workspace = true }
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
|
|
|
@ -19,12 +19,11 @@ use std::sync::Arc;
|
|||
use vello::{
|
||||
fello::meta::MetadataProvider,
|
||||
fello::raw::FontRef,
|
||||
glyph::GlyphContext,
|
||||
glyph::{Glyph, GlyphContext},
|
||||
kurbo::Affine,
|
||||
peniko::{Blob, Brush, BrushRef, Font, StyleRef},
|
||||
SceneBuilder,
|
||||
};
|
||||
use vello_encoding::Glyph;
|
||||
|
||||
// This is very much a hack to get things working.
|
||||
// On Windows, can set this to "c:\\Windows\\Fonts\\seguiemj.ttf" to get color emoji
|
||||
|
|
|
@ -29,6 +29,8 @@ use {
|
|||
vello_encoding::Encoding,
|
||||
};
|
||||
|
||||
pub use vello_encoding::Glyph;
|
||||
|
||||
/// General context for creating scene fragments for glyph outlines.
|
||||
pub struct GlyphContext {
|
||||
ctx: Context,
|
||||
|
|
Loading…
Reference in a new issue