3.5. Richtextlabel Text
You can edit a variety of content, images, font color-size underlines, hyperlink backgrounds, and so on, just like Word documents.
Defaults:
Default font
Default set of images
Blank Texture : blank texture
appearance :
Font size Default
The height of line height is not less than the default font size (System processing).
TextStyle The default text style, bold underline italic, and so on.
Keep whitespace whether to use text wrapping (HTML line wrapping is: <br/> if checked, normal line wrapping in regular text is also a newline)
The default text color for a text color.
Alignment the text to its way.
Layout :
Auto height refers to the size of the height of the layout-"size-" automatically adjusted above. If set then the following scroll bar scrolling option can no longer be used. The choice should be based on the actual situation.
scrolling:
Allow scroll whether scrolling is allowed.
Scroll Pos x, y sets the starting scroll value for the horizontal, vertical scroll bar.
Add Momentum action is still unknown,
The horizontal scroll bar object.
The vertical scroll bar object.
Df-gui uses a markup language for writing web pages. Let's take a look at an example, and here's some code for an example.
Edit the contents of the text that you want to fill in the above picture. As follows:
Text:
<p padding= "5" style= "text-align:justify; margin:25px ">
The Df-gui Rich Text Control uses Unity ' sdynamic fonts system to render TTF or OTF fonts
Without requiring the use of a textureatlas. The dynamic font system builds a dynamic
Texture Atlas Internally "OnDemand", allowing you to use multiple font styles (like<b>bold</b> and
<i>italic</i>) as well as<font size= "125%" >different sizes</font> all in the sameline of text.
</p>
<p style= "text-align:justify;margin:25px" >this also allows you to mix and match character sets inthe same label, l Ike the following:
<ul>
<li>japanese:<span style= "Color:orange" > Japanese </span></li>
<li>chinese:<span style= "Color:orange" > Chinese/Korean </span></li>
<li>korean:<span style= "Color:orange" >??? /??? </span></li>
<li>hebrew:<span style= "Color:orange" >???????? </span></li>
<li>greek:<span style= "Color:orange" >κρ?νω</span></li>
<li>etc ... </li>
</ul>
</p>
<p style= "text-align:justify;margin:25px" >
All text in this panel is rendered with Asingle <b>dfRichTextLabel</b> control.
All font styles, colors, sizes, and effectswere specified through
Html-like markup that have been specificallydesigned to being familiar to people
Who has experience with HTML. Much like<a href= "http://docs.unity3d.com/Documentation/Manual/StyledText.html" style= "color:green; Font-style:bold ">Unity& #39; s Built-in"rich text" Markup</a>,
The<strong>dfrichtextlabel</strong> control uses a subset of thespecified HTML tags to control
Text formatting, but unlike unity& #39; ssolution the tags that <strong>dfrichtextlabel
.................................................
<br/>
Unity3d plugin daikon Forge GUI Chinese Tutorial 6-Use of advanced control Richtextlabel