Text paragraphs, styling, fontconfig
This commit is contained in:
@@ -93,6 +93,7 @@ pub struct GlyphInstance {
|
||||
pub glyph: String,
|
||||
pub position: Point,
|
||||
pub advance: f32,
|
||||
pub color: Color,
|
||||
pub cache_key: Option<CacheKey>,
|
||||
}
|
||||
|
||||
@@ -123,6 +124,7 @@ impl PreparedText {
|
||||
glyph: ch.to_string(),
|
||||
position: Point::new(x, origin.y),
|
||||
advance,
|
||||
color,
|
||||
cache_key: None,
|
||||
});
|
||||
x += advance;
|
||||
|
||||
Reference in New Issue
Block a user