WinPTE.com

 

Text Styles Reference

 

The new display engine uses Text Styles to define the appearance of all elements. Each style contains elements that describe various properties used for rendering of display elements and text.

Text Styles


Element Value/Action
Background Color

RGB with Alpha, an Alpha value of 0 makes this color fully transparent, 255 fully opaque. A color that is not fully opaque is alpha blended with the background color of the style that is logically "Below" it. see Resolving Styles.

Foreground Color

This is the Text Color. RGB + Alpha.

Line Color This is used to render lines including Box around text, underline and strikethrough.
Line Style Determines the line thickness, dashed/solid/patterned used for rendering lines including underline and strikethrough text effects.
Box Style Same as Line Style but used for rendering Boxed text effect
Italic Italic font style, On/Off/Unspecified - If unspecified then the value will be determined by the style logically below this style.
Bold Bold font style, On/Off/Unspecified - If unspecified then the value will be determined by the style logically below this style.
Simulated Bold Same as bold but does not affect character widths, used for transient highlighting where using standard bold would affect text size and create a jarring visual effect. On/Off/Unspecified - If unspecified then the value will be determined by the style logically below this style.
Underline Underline effect On/Off/Unspecified - If unspecified then the value will be determined by the style logically below this style.
Strikethrough Strikethrough effect On/Off/Unspecified - If unspecified then the value will be determined by the style logically below this style.

 

Resolving Styles

Styles are organized into a logical Z-Order, with a style above overlaying its values on top of the style below. For color that means corresponding colors are alpha blended. Background with background, foreground with foreground and line color with line color. Addtionally, any numeric or boolean values that are unspecified take on the values from the style below or if specified override the values of the style logcially lower on the Z-Order.

Normal Style is logically the bottom most of all Text display styles. Hence, its color settings do not have a modifiable Alpha value, it is considered 255 (Opaque). All Styles that affect the text area of the display are located logically above the Normal Style.

Margin Style is logically above the Normal Style and below all other styles that affect the margin area of the display window.

StatusBar styles are logcially above a dummy Style that has its Background set to the Button Face color (System Setting) and its Foreground and Line colors set to the Button Text color (System Setting). All other values of this dummy style are 'Unspecified' which is equivalent to not set.

Selection, Powerblock and Highlight Styles are overlaid on top of the text style as it is displayed. This has the effect of showing the color of the underlying text through a transparent or semi-transparent selection.

Command Line Style and Command Line Margin Style overlay the Normal Text style in the text area and Margin Style in the margin area.

Command Line Selection Styles overlay the Command Line Style so any transparency will show the color of the Command Line style color.

Tab and Margin indicator Lines these styles are unique in that their Line Color overlays the background color of the text style under them. This is done to create consistent line rendering of these indicator lines regardless of what text/selection is being displayed.

Cursor Line Highlight Style overlays the text style and margin style of text under the current cursor line.

 

 

 

 

Site Map | Privacy Policy | Contact Us | ©2004 Winpte.com