forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OGSMOD-2694 Merge latest text features from adsk/feature/text to adsk…
…/dev branch. (PixarAnimationStudios#207) Description of Change(s) Cherry-pick text commits from adsk/feature/text to adsk/dev branch. Fixes Issue(s) Include underline/overline feature and bugs fixing.
- Loading branch information
Showing
29 changed files
with
1,676 additions
and
263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#usda 1.0 | ||
|
||
( | ||
upAxis = "Y" | ||
doc = """This layer represents the various geometric forms that curves | ||
may be used to represent.""" | ||
) | ||
|
||
def Xform "Text1" { | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (0, 9, 0) | ||
def Scope "Text11"{ | ||
def GenericText "TextA" (){ | ||
uniform token[] xformOpOrder = ["xformOp:translate"] | ||
float3 xformOp:translate = (3, 0, 0) | ||
|
||
string markupString = "\\fArial|b0|i0|p34|c0;\\H20;\\c65300;Ěšč②Ab2ガ≈ガ \\P圭传岩 ščहिĚšč②Ab2ガ≈ガ \\P كيف هو الطقس اليو" | ||
uniform token markupLanguage = "mtext" | ||
color3f[] primvars:displayColor = [(0, 1, 0)] | ||
rel textStyle:binding = </StyleA> | ||
rel columnStyle:binding = [ | ||
</columnA>, | ||
</columnB>, | ||
] | ||
rel paragraphStyle:binding = </paragraphA> | ||
} | ||
} | ||
} | ||
|
||
def TextStyle "StyleA" { | ||
string typeface = "Times New Roman" | ||
int textHeight = 20 | ||
} | ||
|
||
def ColumnStyle "columnA" { | ||
float columnWidth = 1000 | ||
float columnHeight = 300 | ||
float2 offset = (0.0, 0.0) | ||
} | ||
|
||
def ColumnStyle "columnB" { | ||
float columnWidth = 1000 | ||
float columnHeight = 300 | ||
float2 offset = (0.0, -320.0) | ||
} | ||
|
||
def ParagraphStyle "paragraphA" { | ||
float leftIndent = 15.0 | ||
float rightIndent = 30.0 | ||
float firstLineIndent = 55.0 | ||
float paragraphSpace = 15.0 | ||
float[] tabStopPosition = [150.0, 350.0, 550.0, 750.0] | ||
uniform token[] tabStopType = ["centerTab", "centerTab", "centerTab", "centerTab"] | ||
} |
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
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.