-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from SixLabors/js/justified-text
Add Text Justification Options
- Loading branch information
Showing
7 changed files
with
401 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Six Labors. | ||
// Licensed under the Apache License, Version 2.0. | ||
|
||
namespace SixLabors.Fonts | ||
{ | ||
/// <summary> | ||
/// Text justification modes. | ||
/// </summary> | ||
public enum TextJustification | ||
{ | ||
/// <summary> | ||
/// No justification | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// The text is justified by adding space between words (effectively varying word-spacing), | ||
/// which is most appropriate for languages that separate words using spaces, like English or Korean. | ||
/// </summary> | ||
InterWord, | ||
|
||
/// <summary> | ||
/// The text is justified by adding space between characters (effectively varying letter-spacing), | ||
/// which is most appropriate for languages like Japanese. | ||
/// </summary> | ||
InterCharacter | ||
} | ||
} |
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
Oops, something went wrong.