Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:XML/Font
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{uixmlelem}} [[XML/Font|Font]] is a special element that allows [[XML/FontString|FontString]] properties to be more easily defined for inheriting. The [[XML/Font|Font]] element can be used in a [[XML/Ui]] element. == Inheritance == Inherited by: [[XML/FontString|FontString]], Inherits: none, Defined in: [[XML/Ui|Ui]] == Elements == * [[XML/Value|FontHeight]] * [[XML/Color|Color]] * [[XML/Shadow|Shadow]] == Attributes == * name (string) * inherits (string) * virtual (bool) - Default is 'false'. * font (string) * spacing (float) - Default is '0'. * outline ([[XML/OUTLINE|OUTLINE]]) - Default is 'NONE'. * monochrome (bool) - Default is 'false'. * justifyV ([[XML/JUSTIFYV|JUSTIFYV]]) - Default is 'MIDDLE'. * justifyH ([[XML/JUSTIFYH|JUSTIFYH]]) - Default is 'CENTER'. * height (int) - font height. is inline alternative to <FontHeight> == Summary == Font is one of the few types that can be virtually inherited by more than one type. Fonts can inherit other Fonts and FontStrings can inherit Fonts. The primary purpose of Font is to avoid having to create virtual FontStrings which are expensive since they are fully renderable elements. === Example === <[[XML/Ui|Ui]] xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <[[XML/Font|Font]] name="MyFont" font="myfont.ttf" virtual="true"/> <FontHeight> <AbsValue val="12"/> </FontHeight> </Font> <Frame name="MyFrame"> <Size x="200" y="200"/> <Layers> <Layer> <FontString text="Bob" inherits="MyFont"> <Size x="100" y="100"/> <Anchors> <Anchor point="TOP"/> </Anchors> </Texture> </Layer> </Layers> </Frame> </Ui> This example creates a Font that is used by a FontString. Demonstrates using Font to simplify use of FontString. === Notes === * height attribute added 6.1.0
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Uixmlelem
(
edit
)