[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:
Arman Uguray 2023-04-13 20:22:17 -07:00
parent 3ff490fc13
commit 6d2b98cade
3 changed files with 3 additions and 3 deletions

View file

@ -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"] }

View file

@ -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

View file

@ -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,