-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use glyph_brush_layout and add text alignment support (#765)
Use glyph_brush_layout and add text alignment support Co-authored-by: Olivier Pinon <[email protected]> Co-authored-by: tigregalis <[email protected]> Co-authored-by: Carter Anderson <[email protected]>
- Loading branch information
1 parent
1eff534
commit 465c3d4
Showing
19 changed files
with
641 additions
and
338 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use ab_glyph::GlyphId; | ||
use thiserror::Error; | ||
|
||
#[derive(Debug, PartialEq, Eq, Error)] | ||
pub enum TextError { | ||
#[error("Font not found")] | ||
NoSuchFont, | ||
#[error("Failed to add glyph to newly-created atlas {0:?}")] | ||
FailedToAddGlyph(GlyphId), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.