mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-09 20:31:29 +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]
|
[dependencies]
|
||||||
vello = { path = "../../" }
|
vello = { path = "../../" }
|
||||||
vello_encoding = { path = "../../crates/encoding" }
|
|
||||||
vello_svg = { path = "../../integrations/vello_svg" }
|
vello_svg = { path = "../../integrations/vello_svg" }
|
||||||
anyhow = { workspace = true }
|
anyhow = { workspace = true }
|
||||||
clap = { workspace = true, features = ["derive"] }
|
clap = { workspace = true, features = ["derive"] }
|
||||||
|
|
|
@ -19,12 +19,11 @@ use std::sync::Arc;
|
||||||
use vello::{
|
use vello::{
|
||||||
fello::meta::MetadataProvider,
|
fello::meta::MetadataProvider,
|
||||||
fello::raw::FontRef,
|
fello::raw::FontRef,
|
||||||
glyph::GlyphContext,
|
glyph::{Glyph, GlyphContext},
|
||||||
kurbo::Affine,
|
kurbo::Affine,
|
||||||
peniko::{Blob, Brush, BrushRef, Font, StyleRef},
|
peniko::{Blob, Brush, BrushRef, Font, StyleRef},
|
||||||
SceneBuilder,
|
SceneBuilder,
|
||||||
};
|
};
|
||||||
use vello_encoding::Glyph;
|
|
||||||
|
|
||||||
// This is very much a hack to get things working.
|
// 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
|
// On Windows, can set this to "c:\\Windows\\Fonts\\seguiemj.ttf" to get color emoji
|
||||||
|
|
|
@ -29,6 +29,8 @@ use {
|
||||||
vello_encoding::Encoding,
|
vello_encoding::Encoding,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pub use vello_encoding::Glyph;
|
||||||
|
|
||||||
/// General context for creating scene fragments for glyph outlines.
|
/// General context for creating scene fragments for glyph outlines.
|
||||||
pub struct GlyphContext {
|
pub struct GlyphContext {
|
||||||
ctx: Context,
|
ctx: Context,
|
||||||
|
|
Loading…
Reference in a new issue