Search completed in 1.26 seconds.
SVG documentation index - SVG: Scalable Vector Graphics
The by attribute specifies a relative offset value for an attribute that will be modified during an animation. 37 calcMode NeedsCompatTable, NeedsExample, SVG, SVG Attribute The calcMode attribute specifies the interpolation mode for the animation. 38 cap-height Deprecated, SVG, SVG Attribute The cap-height attribute defines the height of uppercase
glyphs of the font within the font coordinate system. 39 class Reference, SVG, SVG Attribute Assigns a class name or set of class names to an element. You may assign the same class name or names to any number of elements, however, multiple class names must be separated by whitespace characters. 40 clip SVG, SVG Attribute The clip attribute is a presentation attr...
...environment. 81 font-size-adjust SVG, SVG Attribute The font-size-adjust attribute allows authors to specify an aspect value for an element that will preserve the x-height of the first choice font in a substitute font. 82 font-stretch NeedsExample, SVG, SVG Attribute The font-stretch attribute indicates the desired amount of condensing or expansion in the
glyphs used to render the text. 83 font-style CSS, Font Style, Italic, Oblique, SVG, SVG Attribute, Text, Type, font The font-style attribute specifies whether the text is to be rendered using a normal, italic, or oblique face. 84 font-variant SVG, SVG Attribute The font-variant attribute indicates whether the text is to be rendered using variations of the font'...
...sed to render the text. 83 font-style CSS, Font Style, Italic, Oblique, SVG, SVG Attribute, Text, Type, font The font-style attribute specifies whether the text is to be rendered using a normal, italic, or oblique face. 84 font-variant SVG, SVG Attribute The font-variant attribute indicates whether the text is to be rendered using variations of the font's
glyphs. 85 font-weight SVG, SVG Attribute The font-weight attribute refers to the boldness or lightness of the
glyphs used to render the text, relative to other fonts in the same font family. 86 format Deprecated, SVG, SVG Attribute The format attribute indicates the format of the given font. 87 fr SVG, SVG Attribute The fr attribute defines...
...And 15 more matches
OpenType font features guide - CSS: Cascading Style Sheets
These are all referred to as OpenType Features, and are made available to use on the web via specific properties and a low-level control property -- font-feature-settings. This article provides you with all you need to know about using OpenType font features in CSS. ...
... ligatures are common examples), while others are left to the designer or developer to choose to enable in specific scenarios. In addition to broad feature sets like ligatures or lining figures (numerals that line up evenly as opposed to 'oldstyle', which look more like lower-case letters), there are also very specific ones such as stylistic sets (which might include several specific variants of
glyphs meant to be used together), alternates (which might be one or more variants of the letter 'a'), or even language-specific alterations for East Asian languages. In the latter case, these alterations are actually necessary to properly express the language, so they go beyond the more stylistic preference of most other OpenType features. Caution: There are many CSS attributes defined to leverage fo...
...ook and behave differently in subtle and dramatic ways. Not all OpenType features are appropriate to use all of the time, but some features are critical for great typography. -- Tim Brown, Head of Typography at Adobe. Sometimes it's substance, not just style There are some cases -- like with font-variant-east-asian -- that OpenType features are directly tied to using different forms of certain
glyphs, which can impact meaning and readability. In cases such as these it's more than just a nicety, but rather an integral part of the content itself. The font features There are a number of different features to consider. They are grouped and explained here according to the main attributes and options covered in the W3C specifications. Note: The examples below show the properties and some exampl...
...And 6 more matches
Fonts for Mozilla 2.0's MathML engine
f CSS), with the assurance that Mozilla's font engine will hunt for alternate fonts whenever their specified fonts are not found on a particular user's system. If no appropriate font is ultimately found for a given character, Mozilla will instead display a box containing the hexadecimal representation of the Unicode code point for the character. Some mathematical operators are also drawn by using
glyphs for larger variants of the character (e.g. summation symbol) or by assembling
glyphs for a few pieces of the character (e.g braces). These variant or part
glyphs do not in general have Unicode assignments, and so font-specific support is required for some characters. Mozilla has general support for the common delimiters and arrows that have the necessary Unicode assignments. For other characters,...
...To see MathML as intended, you need sufficient font support, which may mean installing some fonts. Note that some Web sites may provide the required mathematical fonts as Web fonts. ...
...installing some fonts. Note that some Web sites may provide the required mathematical fonts as Web fonts. In that case, you will see the correct rendering on these pages if you use Gecko 15.0 (Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12) or greater. Recommended Fonts The STIX Fonts Project has been developing a comprehensive set of fonts that cover all the symbols in MathML and also contains
glyphs to stretch mathematical operators. They are available under the SIL Open Font License and should be installed for best MathML rendering. Note that currently, only the fonts in /Fonts/STIX-General/ are used for stretching mathematical operators with STIX fonts. Asana Math is also freely available under the SIL Open Font License and has good support for mathematical characters. Starting in Gecko 7.
...And 3 more matches
dx - SVG: Scalable Vector Graphics
The dx attribute indicates a shift along the x-axis on the position of an element or its content. ...
...ed; stroke-width: .5px; stroke-dasharray: 3px; } altGlyph Warning: As of SVG2 <altGlyph> is deprecated and shouldn't be used. For <altGlyph>, if it contains a single value, dx defines a shift along the x-axis for all alternate glyph. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than
glyphs, the remaining
glyphs use a value of 0. If there are more values than
glyphs, extra values are ignored. Value List of <length> Default value none Animatable Yes feDropShadow For <feDropShadow>, dx defines the x offset of the droped shadow. The unit used to resolve the value of the attribute is set by the primitiveUnits attribute of the <filter> element...
... Default value 0 Animatable Yes glyphRef Warning: As of SVG2 <glyphRef> is deprecated and shouldn't be used. For <glyphRef>, dx defines the x offset of the glyph, in the font metric system. Value <number> Default value 0 Animatable Yes text For <text>, if it contains a single value, dx defines a shift along the x-axis for all
glyphs. If there are multiple values, dx defines a shift along the x-axis for each individual glyph relative to the preceding glyph. If there are less values than
glyphs, the remaining
glyphs use a value of 0. If there are more values than
glyphs, extra values are ignored. Value List of <length> Default value none Animatable Yes Example html,body,svg { heig...
...And 3 more matches
font-family - CSS: Cascading Style Sheets
aining whitespace should be quoted. <generic-name> Generic font families are a fallback mechanism, a means of preserving some of the style sheet author's intent when none of the specified fonts are available. Generic family names are keywords and must not be quoted. A generic font family should be the last item in the list of font family names. The following keywords are defined: serif
Glyphs have finishing strokes, flared or tapering ends, or have actual serifed endings. E.g. Lucida Bright, Lucida Fax, Palatino, "Palatino Linotype", Palladio, "URW Palladio", serif. sans-serif
Glyphs have stroke endings that are plain. E.g. "Open Sans", "Fira Sans", "Lucida Sans", "Lucida Sans Unicode", "Trebuchet MS", "Liberation Sans", "Nimbus Sans L", sans-serif. monospace All
glyphs ha...
...The
glyphs are partially or completely connected, and the result looks more like handwritten pen or brush writing than printed letterwork. E.g. ...
... E.g. "Brush Script MT", "Brush Script Std", "Lucida Calligraphy", "Lucida Handwriting", "Apple Chancery", cursive. ...
...And 2 more matches
font-variant-caps - CSS: Cascading Style Sheets
The font-variant-caps CSS property controls the use of alternate
glyphs for capital letters. The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. When a given font includes capital letter
glyphs of multiple different sizes, this property selects the most appropriate ones. If petite capital
glyphs are not available, they are rendered using small capital
glyphs. If these are not present, the browser synthesizes them from the uppercase
glyphs. ...
... Language-specific rules This property accounts for language-specific case mapping rules. ...
... Language-specific rules This property accounts for language-specific case mapping rules. ...
...And 2 more matches
font-variant-alternates - CSS: Cascading Style Sheets
The font-variant-alternates CSS property controls the usage of alternate
glyphs. These alternate
glyphs may be referenced by alternative names defined in @font-feature-values. /* Keyword values */ font-variant-alternates: normal; font-variant-alternates: historical-forms; /* Functional notation values */ font-variant-alternates: stylistic(user-defined-ident); font-variant-alternates: styleset(user-defined-ident); font-variant-alternates: character-variant(user-defined-ident); font-variant-alternates: swash(user-defined-ident); font-variant-alternates: ornaments(user-defined-ident); font-variant-alternates: annotation(user-defined-ident); font-variant-alternates: swash(ident1) annotation(ident2); /* Global values */ font-variant-alternates: initial; font-variant-alternates: inherit; font-vari...
...ment or annotation), associating the name with OpenType parameters. This property allows those human-readable names (defined in @font-feature-values) in the stylesheet. Syntax This property may take one of two forms: either the keyword normal or one or more of the other keywords and functions listed below, space-separated, in any order. Values normal This keyword deactivates alternate
glyphs. historical-forms This keyword enables historical forms --
glyphs that were common in the past but not today. It corresponds to the OpenType value hist. stylistic() This function enables stylistic alternates for individual characters. The parameter is a font-specific name mapped to a number. It corresponds to the OpenType value salt, like salt 2. styleset() This function enables stylistic a...
... It corresponds to the OpenType value salt, like salt 2. styleset() This function enables stylistic alternatives for sets of characters. The parameter is a font-specific name mapped to a number. It corresponds to the OpenType value ssXY, like ss02. character-variant() This function enables specific stylistic alternatives for characters. It is similar to styleset(), but doesn't create coherent
glyphs for a set of characters; individual characters will have independent and not necessarily coherent styles. The parameter is a font-specific name mapped to a number. It corresponds to the OpenType value cvXY, like cv02. swash() This function enables swash
glyphs. The parameter is a font-specific name mapped to a number. It corresponds to the OpenType values swsh and cswh, like swsh 2 and cswh 2. ...
...The parameter is a font-specific name mapped to a number. It corresponds to the OpenType value ornm, like ornm 2. ...
font-variant-east-asian - CSS: Cascading Style Sheets
The font-variant-east-asian CSS property controls the use of alternate
glyphs for East Asian scripts, like Japanese and Chinese. font-variant-east-asian: normal; font-variant-east-asian: ruby; font-variant-east-asian: jis78; /* <east-asian-variant-values> */ font-variant-east-asian: jis83; /* <east-asian-variant-values> */ font-variant-east-asian: jis90; /* <east-asian-variant-values> */ font-variant-east-asian: jis04; /* <east-asian-variant-values> */ font-variant-east-asian: simplified; /* <east-asian-variant-values> */ font-variant-east-asian: traditional; /* <east-asian-variant-values> */ font-variant-east-asian: full-width; /* <east-asian-width-values> */ font-variant-east-asian: proportional-width; /* <east-asian-...
...sian: full-width; /* <east-asian-width-values> */ font-variant-east-asian: proportional-width; /* <east-asian-width-values> */ font-variant-east-asian: ruby full-width jis83; /* Global values */ font-variant-east-asian: inherit; font-variant-east-asian: initial; font-variant-east-asian: unset; Syntax Values normal This keyword leads to the deactivation of the use of such alternate
glyphs. ruby This keyword forces the use of special
glyphs for ruby characters. As these are usually smaller, font creators often designs specific forms, usually slightly bolder to improve the contrast. This keyword corresponds to the OpenType values ruby. <east-asian-variant-values> These values specify a set of logographic glyph variants which should be used for display. Possible values are: ...
...ecial
glyphs for ruby characters. As these are usually smaller, font creators often designs specific forms, usually slightly bolder to improve the contrast. This keyword corresponds to the OpenType values ruby. <east-asian-variant-values> These values specify a set of logographic glyph variants which should be used for display. ...
...hic glyph variants which should be used for display. Possible values are: Keyword Standard defining the
glyphs OpenType equivalent jis78 JIS X 0208:1978 jp78 jis83 JIS X 0208:1983 jp83 jis90 JIS X 0208:1990 jp90 jis04 JIS X 0213:2004 jp04 simplified None, use the simplified Chinese
glyphs smpl traditional None, use the traditional Chinese
glyphs trad <east-asian-width-values> These values control the sizing of figures used for East Asian characters. Two values are possible: proportional-width activating the set of East Asian characters which vary in width. It corresponds to the OpenType values pwid. full-width activating the set of East A...
Fundamental text and font styling - Learn web development
s that provide finer grained control than the above keywords, if needed. text-transform: Allows you to set your font to be transformed. Values include: none: Prevents any transformation. uppercase: Transforms all text to capitals. lowercase: Transforms all text to lower case. capitalize: Transforms all words to have the first letter capitalized. full-width: Transforms all
glyphs to be written inside a fixed-width square, similar to a monospace font, allowing aligning of e.g. Latin characters along with Asian language
glyphs (like Chinese, Japanese, Korean). text-decoration: Sets/unsets text decorations on fonts (you'll mainly use this to unset the default underline on links when styling them.) Available values are: none: Unsets any text decorations already pr...
...wanted to cover the most important ones here. Once you've become used to using the above, you should also explore the following: Font styles: font-variant: Switch between small caps and normal font alternatives. font-kerning: Switch font kerning options on and off. font-feature-settings: Switch various OpenType font features on and off. font-variant-alternates: Control the use of alternate
glyphs for a given font-face. font-variant-caps: Control the use of alternate capital
glyphs. font-variant-east-asian: Control the usage of alternate
glyphs for East Asian scripts, like Japanese and Chinese. font-variant-ligatures: Control which ligatures and contextual forms are used in text. font-variant-numeric: Control the usage of alternate
glyphs for numbers, fractions, and ordinal markers. f...
... font-size-adjust: Adjust the visual size of the font independently of its actual font size. font-stretch: Switch between possible alternative stretched versions of a given font. text-underline-position: Specify the position of underlines set using the text-decoration-line property underline value. ...
SVGTextContentElement - Web APIs
onaco,Andale Mono,monospace" fill="#4D4E53" text-anchor="middle" alignment-baseline="middle">SVGTextContentElement</text></a></svg></div> a:hover text { fill: #0095DD; pointer-events: all;} Constants Constant Value Description LENGTHADJUST_UNKNOWN 0 Some other value. LENGTHADJUST_SPACING 1 The spacing keyword. LENGTHADJUST_SPACINGAND
GLYPHS 2 The spacingAnd
Glyphs keyword. Properties This interface also inherits properties from its parent, SVGGraphicsElement. SVGTextContentElement.textLength Read only An SVGAnimatedLength reflecting the textLength attribute of the given element. SVGTextContentElement.lengthAdjust Read only An SVGAnimatedEnumeration reflecting the lengthAdjust attribute of the given element. The ...
... of whether they will be rendered. SVGTextContentElement.getComputedTextLength() Returns a float representing the computed length for the text within the element. SVGTextContentElement.getSubStringLength() Returns a float representing the computed length of the formatted text advance distance for a substring of text within the element. Note that this method only accounts for the widths of the
glyphs in the substring and any extra spacing inserted by the CSS 'letter-spacing' and 'word-spacing' properties. Visual spacing adjustments made by the 'x' attribute is ignored. SVGTextContentElement.getStartPositionOfChar() Returns a DOMPoint representing the position of a typographic character after text layout has been performed. Note: In SVG 1.1 this method returned an SVGPoint. SVGTextConten...
...e glyph cell that corresponds to a given typographic character. SVGTextContentElement.getRotationOfChar() Returns a float representing the rotation of typographic character. SVGTextContentElement.getCharNumAtPosition() Returns a long representing the character which caused a text glyph to be rendered at a given position in the coordinate system. Because the relationship between characters and
glyphs is not one-to-one, only the first character of the relevant typographic character is returned SVGTextContentElement.selectSubString() Selects text within the element. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'SVGTextContentElement' in that specification. Candidate Recommendation Changed inheritance from SVGE...
font-language-override - CSS: Cascading Style Sheets
The font-language-override CSS property controls the use of language-specific
glyphs in a typeface. /* Keyword value */ font-language-override: normal; /* <string> values */ font-language-override: "ENG"; /* Use English
glyphs */ font-language-override: "TRK"; /* Use Turkish
glyphs */ /* Global values */ font-language-override: initial; font-language-override: inherit; font-language-override: unset; By default, HTML's lang attribute tells browsers to display
glyphs designed specifically for that language. For example, a lot of fonts have a special character for the digraph fi that merge the dot on the "i" with the "f." However, if the language is set to Turkish the typeface will likely know not to use the merged glyph; Turkish has two versions of the "i," one with a dot (i) and one witho...
...nd using the ligature would incorrectly transform a dotted "i" into a dotless "i." The font-language-override property lets you override the typeface behavior for a specific language. This is useful, for example, when the typeface you're using lacks proper support for the language. For instance, if a typeface doesn't have proper rules for the Azeri language, you can force the font to use Turkish
glyphs, which follow similar rules. Syntax The font-language-override property is specified as the keyword normal or a <string>. Values normal Tells the browser to use font
glyphs that are appropriate for the language specified by the lang attribute. This is the default value. <string> Tells the browser to use font
glyphs that are appropriate for the language specified by the string. The string...
...the language specified by the string. The string must match a language tag found in the OpenType language system. For example, "ENG" is English, and "KOR" is Korean. Formal definition Initial valuenormalApplies toall elements. ...
font-variant-numeric - CSS: Cascading Style Sheets
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. ...
...umeric: oldstyle-nums stacked-fractions; /* Global values */ font-variant-numeric: inherit; font-variant-numeric: initial; font-variant-numeric: unset; This property can take one of two forms: either the keyword value normal or one or more of the other values listed below, space-separated, in any order. Values normal This keyword leads to the deactivation of the use of such alternate
glyphs. ordinal This keyword forces the use of special
glyphs for the ordinal markers, like 1st, 2nd, 3rd, 4th in English or a 1a in Italian. It corresponds to the OpenType values ordn. slashed-zero This keyword forces the use of a 0 with a slash; this is useful when a clear distinction between O and 0 is needed. It corresponds to the OpenType values zero. <numeric-figure-values> These values cont...
... values are possible: proportional-nums activating the set of figures where numbers are not all of the same size. It corresponds to the OpenType values pnum. tabular-nums activating the set of figures where numbers are all of the same size, allowing them to be easily aligned like in tables. It corresponds to the OpenType values tnum. <numeric-fraction-values> These values controls the
glyphs used to display fractions. Two values are possible: diagonal-fractions activating the set of figures where the numerator and denominator are made smaller and separated by a slash. It corresponds to the OpenType values frac. stacked-fractions activating the set of figures where the numerator and denominator are made smaller, stacked and separated by a horizontal line. It corresponds to the O...
font-variant-position - CSS: Cascading Style Sheets
The font-variant-position CSS property controls the use of alternate, smaller
glyphs that are positioned as superscript or subscript. The
glyphs are positioned relative to the baseline of the font, which remains unchanged. These
glyphs are typically used in <sub> and <sup> elements. ...
...re positioned relative to the baseline of the font, which remains unchanged. These
glyphs are typically used in <sub> and <sup> elements. /* Keyword values */ font-variant-position: normal; font-variant-position: sub; font-variant-position: super; /* Global values */ font-variant-position: inherit; font-variant-position: initial; font-variant-position: unset; When the usage of these alternate
glyphs is activated, if one character in the run doesn't have such a typographically-enhanced glyph, the whole set of characters of the run is rendered using a fallback method, synthesizing these
glyphs. These alternate
glyphs share the same em-box and the same baseline as the rest of the font. They are merely graphically enhanced, and have no effect on the line-height and other box characteristics. ...
...hod, synthesizing these
glyphs. These alternate
glyphs share the same em-box and the same baseline as the rest of the font. They are merely graphically enhanced, and have no effect on the line-height and other box characteristics. Syntax The font-variant-position property is specified as one of the keyword values listed below. Values normal Deactivates alternate superscript and subscript
glyphs. sub Activates subscript alternate
glyphs. If, in a given run, one such glyph is not available for a character, all the characters in the run are rendered using synthesized
glyphs. super Activates superscript alternate
glyphs. If, in a given run, one such glyph is not available for a character, all the characters in the run are rendered using synthesized
glyphs. Formal definition Initial va...
dy - SVG: Scalable Vector Graphics
The dy attribute indicates a shift along the y-axis on the position of an element or its content. ...
... Default value 0 Animatable Yes glyphRef Warning: As of SVG2 <glyphRef> is deprecated and shouldn't be used. For <glyphRef>, dy defines the y offset of the glyph, in the font metric system. Value <number> Default value 0 Animatable Yes text For <text>, if it contains a single value, dy defines a shift along the y-axis for all
glyphs. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes Example html,body,svg { h...
...in the attributes --> <text dy="20" x="10" y="30">SVG</text> <text dy="0 10" x="50" y="30">SVG</text> <text dy="0 10 20" x="90" y="30">SVG</text> </svg> line { stroke: red; stroke-width: .5px; stroke-dasharray: 3px; } tref Warning: As of SVG2 <tref> is deprecated and shouldn't be used. For <tref>, if it contains a single value, dy defines a shift along the y-axis for all
glyphs. If there are multiple values, dy defines a shift along the y-axis for each individual glyph relative to the preceding glyph. If there are less values than glyphes, the remaining glyphes use a value of 0. If there are more values than glyphes, extra values are ignored. Value List of <length> Default value none Animatable Yes tspan For <tspan>, if it c...
u1 - SVG: Scalable Vector Graphics
The u1 attribute specifies list of Unicode characters (refer to the description of the unicode attribute of the <glyph> element for a description of how to express individual Unicode characters) and/or ranges of Unicode characters, which identify a set of possible first
glyphs in a kerning pair. ...
...yph> element for a description of how to express individual Unicode characters) and/or ranges of Unicode characters, which identify a set of possible first
glyphs in a kerning pair. If a given Unicode character within the set has multiple corresponding <glyph> elements (i.e., there are multiple <glyph> elements with the same unicode attribute value but different glyph-name values), then all such
glyphs are included in the set. Comma is the separator character; thus, to kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g1 attribute. The total set of possible first
glyphs in the kerning pair is the union of
glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value ...
...ified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible first
glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u1' in that specification. Recommendation Initial definition ...
u2 - SVG: Scalable Vector Graphics
The u2 attribute specifies list of Unicode characters (refer to the description of the unicode attribute of the <glyph> element for a description of how to express individual Unicode characters) and/or ranges of Unicode characters, which identify a set of possible second
glyphs in a kerning pair. ...
...ph> element for a description of how to express individual Unicode characters) and/or ranges of Unicode characters, which identify a set of possible second
glyphs in a kerning pair. If a given Unicode character within the set has multiple corresponding <glyph> elements (i.e., there are multiple <glyph> elements with the same unicode attribute value but different glyph-name values), then all such
glyphs are included in the set. Comma is the separator character; thus, to kern a comma, specify the comma as part of a range of Unicode characters or as a glyph name using the g2 attribute. The total set of possible second
glyphs in the kerning pair is the union of
glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value ...
...fied by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value [ <character> | <urange> ]# Default value None Animatable No [ <character> | <urange> ]# This value indicates a comma-separated sequence of Unicode characters and/or ranges of Unicode characters, which identify a set of possible second
glyphs in a kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'u2' in that specification. Recommendation Initial definition ...
SVG fonts - SVG: Scalable Vector Graphics
"300" alphabetic="0" mathematical="350" ideographic="400" hanging="500"> <font-face-src> <font-face-name name="Super Sans Bold"/> </font-face-src> </font-face> <missing-glyph><path d="M0,0h200v200h-200z"/></missing-glyph> <glyph unicode="!" horiz-adv-x="300"><!-- Outline of exclam. pt. glyph --></glyph> <glyph unicode="@"><!-- Outline of @ glyph --></glyph> <!-- more
glyphs --> </font> We start with the <font> element. This bears an id attribute, to enable it to be referenced via a URI (see below). The horiz-adv-x attribute determines how wide a character is on average compared to the path definitions of the single
glyphs. The value 1000 sets a reasonable value to work with. There are several accompanying attributes that help further define the basic glyph-box lay...
...such as weight, style, etc. In the example above the first and most important to be defined is font-family, the value of which can then be referenced in CSS and SVG font-family properties. The font-weight and font-style attributes have the same purpose as the equivalent descriptors in CSS. All following attributes are rendering instructions for the font layout engine, for example, how much of the
glyphs' overall heights are ascenders. Its child, the <font-face-src> element, corresponds to CSS' src descriptor in @font-face declarations. You can point to external sources for font declarations by means of its children <font-face-name> and <font-face-uri>. The above example states that if the renderer has a local font available named "Super Sans Bold", it should use this instead. Following <font-f...
...declarations by means of its children <font-face-name> and <font-face-uri>. The above example states that if the renderer has a local font available named "Super Sans Bold", it should use this instead. Following <font-face-src> is a <missing-glyph> element. This defines what should be displayed if a certain glyph is not found in the font and if there are no fallback mechanisms. It also shows how
glyphs are created: By simply adding any graphical SVG content inside. You can use literally any other SVG elements in here, even <filter>, <a> or <script>. For simple
glyphs, however, you can simply add a d attribute -- this defines a shape for the glyph exactly like how standard SVG paths work. The actual
glyphs are then defined by <glyph> elements. The most important attribute is unicode. It defines...
Baseline - MDN Web Docs Glossary: Definitions of Web-related terms
East Asian scripts have no baseline. ...
... The baseline is a term used in European and West Asian typography meaning an imaginary line upon which the characters of a font rest. The descenders of characters like g and p extend below this line.
Glyphs with rounded lower and upper extents like C or 3 slightly extend below it. East Asian scripts have no baseline. Their
glyphs are placed in a square box without ascenders or descenders. Learn more General knowledge Baseline on Wikipedia Technical reference CSS Box Alignment on MDN ...
mozITXTToHTMLConv
text, in unsigned long whattodo) Constants Conversion control attributes These bits allow you to control the conversion of text into HTML. Constant Type Description kEntities unsigned long Enables conversion of basic special characters to HTML entities. This applies to "<", "&", and ">" (which are converted to <, &, and >, respectively). k
GlyphSubstitution unsigned long Enables conversion of smilies and non-ASCII special characters. kStructPhrase unsigned long Enables conversion of text attributes, such as converting "*some text*" to boldfaced "some text" by wrapping in the HTML <strong> element. kURLs unsigned long Enables automatic addition of hyperlinks for URLs in the text. Methods scanTXT(...
... and convert into HTML. whattodo A bit field composed of the Conversion control attributes indicating what conversions to apply. Return value The HTML version of the specified string. scanHTML() Scans the specified user-edited HTML, adding additional formatting that the user may not have known to do. This should correct HTML that isn't entirely standards-compliant. Warning: Don't use the k
GlyphSubstitution conversion type with this method, as doing so generates HTML that is non-standard. wstring scanHTML( in wstring text, in unsigned long whattodo ); Parameters text The original, user-edited HTML. whattodo A bit field composed of the Conversion control attributes indicating what conversions to apply. Return value A normalized version of the original HTML string. citeLeve...
Index - Web APIs
3687 SVGAltGlyphElement API, Deprecated, NeedsExample, Reference, SVG, SVGAltGlyphElement The SVGAltGlyphElement interface represents an <altglyph> element. This interface makes it possible to implement more sophisticated and particular glyph characters. For some textal representations as: ligatures (e.g. ae, ss, etc ), special-purpose fonts (e.g. musical symbols) or even alternate
glyphs such as Asian text strings it is required that a different set of
glyphs be used than the normal given character data. 3688 SVGAltGlyphElement.glyphRef API, Deprecated, Property, Reference, SVG, SVGAltGlyphElement, SVGAltGlyphRefElement The SVGAltGlyphElement.glyphRef property is a DOMString representing a glyph identifier. It has the same meaning as the 'glyphRef' property o...
...to the <text> elements. 3836 SVGTextPathElement API, NeedsExample, Reference, SVG, SVG DOM The SVGTextPathElement interface corresponds to the <textPath> element. 3837 SVGTextPositioningElement API, NeedsExample, Reference, SVG, SVG DOM The SVGTextPositioningElement interface is implemented by elements that support attributes that position individual text
glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement. 3838 SVGTitleElement API, NeedsExample, Reference, SVG, SVG DOM The SVGTitleElement interface corresponds to the <title> element. 3839 SVGTransform API, Reference, Reference(2), SVG, SVG DOM SVGTransform is the interface for one of the component transformations wit...
kerning - SVG: Scalable Vector Graphics
Note: As a presentation attribute kerning can be used as a CSS property. In CSS the property is called font-kerning, though. ...
... <length> If a length is provided, then auto-kerning is disabled. Instead, inter-character spacing is set to the given length. If a length is provided without a unit identifier (e.g., an unqualified number such as 128), the length is processed as a width value in the current user coordinate system. If a unit...
lengthAdjust - SVG: Scalable Vector Graphics
ibute. Four elements are using this attribute: <text>, <textPath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg width="300" height="150" xmlns="http://www.w3.org/2000/svg"> <g font-face="sans-serif"> <text x="0" y="20" textLength="300" lengthAdjust="spacing"> Stretched using spacing only. ...
...ute: <text>, <textPath>, <tref>, and <tspan> html, body, svg { height: 100%; } <svg width="300" height="150" xmlns="http://www.w3.org/2000/svg"> <g font-face="sans-serif"> <text x="0" y="20" textLength="300" lengthAdjust="spacing"> Stretched using spacing only. </text> <text x="0" y="50" textLength="300" lengthAdjust="spacingAnd
Glyphs"> Stretched using spacing and
glyphs. </text> <text x="0" y="80" textLength="100" lengthAdjust="spacing"> Shrunk using spacing only. </text> <text x="0" y="110" textLength="100" lengthAdjust="spacingAnd
Glyphs"> Shrunk using spacing and
glyphs. </text> </g> </svg> Usage notes Value spacing | spacingAnd
Glyphs Default value spacing Animatable Yes Specific...
path - SVG: Scalable Vector Graphics
the x and y values computed over time. Value <path-data> Default value None Animatable No <path-data> This value defines the motion path along which the referenced element is animated. For detailed information about the commands that can be used, see the explanation for the d attribute. textPath For <textPath>, path defines the path onto which the
glyphs of a <text> element will be rendered. An empty string indicates that there is no path data for the element. This means that the text within the <textPath> element does not render or contribute to the bounding box of the <text> element. If the attribute is not specified, the path specified in href is used instead. Value <path-data> Default value Path specified in href ...
...r the element. This means that the text within the <textPath> element does not render or contribute to the bounding box of the <text> element. If the attribute is not specified, the path specified in href is used instead. Value <path-data> Default value Path specified in href Animatable Yes <path-data> This value defines the text path along which the
glyphs of the <text> element are aligned. For detailed information about the commands that can be used, see the explanation for the d attribute. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 2The definition of 'path for <textPath>' in that specification. Candidate Recommendation Initial definition for <textPath> SVG Animations Le...
xlink:href - SVG: Scalable Vector Graphics
For <altGlyph>, xlink:href defines the reference either to a <glyph> element in an SVG document fragment or to an <altGlyphDef> element. If the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the characters that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appropriate set of alternate
glyphs is located from processing the <altGlyphDef> element, then those alternate
glyphs are rendered instead of the characters that are inside of the <altGlyph> element. Value <iri> Default value None Animatable No animate, animateColor, animateMotion, animateTransform, set For <animate>, <animateColor>, <animateMotion>, <animateTransform>, and <set>, xlink:...
...es or gradient stops. Value <iri> Default value None Animatable Yes script For <script>, xlink:href defines a reference to an external resource containing the script code. Value <iri> Default value None Animatable No textPath For <textPath>, xlink:href defines a reference to the <path> element onto which the
glyphs will be rendered. Value <iri> Default value None Animatable Yes use For <use>, xlink:href defines the location of the referenced object. Value <iri> Default value None Animatable Yes tref For <tref>, xlink:href defines a reference to an element whose character data content shall be used as character data for...
<altGlyph> - SVG: Scalable Vector Graphics
Usage context CategoriesText content element, Text content child elementPermitted contentAny elements or character data Attributes x This attribute defines the corresponding absolute x-coordinates for rendering the element. Value type: <list-of-coordinates> ; Default value: Absolute x-coordinate of ancestor <text> or <tspan>; Animatable: yes y This attribute defines the corresponding absolute y-coordinates for rendering the element. ...
...ue: none; Animatable: no xlink:href An <iri> reference either to a <glyph> element in an SVG document or to an <altGlyphDef> element. If the reference is to a <glyph> element and that glyph is available, then that glyph is rendered instead of the character(s) that are inside of the <altGlyph> element. If the reference is to an <altGlyphDef> element, then if an appropriate set of alternate
glyphs is located from processing the <altGlyphDef> element, then those alternate
glyphs are rendered instead of the character(s) that are inside of the <altGlyph> element. Value type: <iri> ; Default value: none; Animatable: no Global attributes Core Attributes Most notably: id lang Styling Attributes class, style Conditional Processing Attributes Most notably: requiredExtensions, systemLang...
<textPath> - SVG: Scalable Vector Graphics
ext> <textPath href="#MyPath"> Quick brown fox jumps over the lazy dog. </textPath> </text> </svg> Attributes href The URL to the path or basic shape on which to render the text. If the path attribute is set, href has no effect. Value type: <URL> ; Default value: none; Animatable: yes lengthAdjust Where length adjustment should be applied to the text: the space between
glyphs, or both the space and the
glyphs themselves. Value type: spacing|spacingAnd
Glyphs; Default value: spacing; Animatable: yes method Which method to render individual
glyphs along the path. Value type: align|stretch ; Default value: align; Animatable: yes path The path on which the text should be rendered. Value type: <path_data> ; Default value: none; Animatable: yes side Which side of th...
... Value type: auto|exact ; Default value: exact; Animatable: yes startOffset How far the beginning of the text should be offset from the beginning of the path. Value type: <length>|<percentage>|<number> ; Default value: 0; Animatable: yes textLength The width of the space into which the text will render. ...
CSS3 - Archive of obsolete content
CSS Fonts Module Level 3 Candidate Recommendation since September 20th, 2018 Amends the CSS2.1 Font matching algorithm to be closer to what is really implemented. Adds: Support for downloadable fonts via the CSS @font-face at-rule. The control of the contextual inter-glyph spacing via the CSS font-kerning property. The choice of language-specific
glyphs via the CSS font-language-override property. The choice of
glyphs with specific OpenType features via the CSS font-feature-settings property. The control of the aspect ratio to use when fallback fonts are selected via the CSS font-size-adjust property. The choice of alternative font faces using the CSS font-stretch, font-variant-alternates, font-variant-caps, font-variant-east-asia...
Glyph - MDN Web Docs Glossary: Definitions of Web-related terms
A glyph is a term used in typography for the visual representation of one or more characters. The fonts used by a website contain different sets of
glyphs, which represent the characters of the font. Learn more General knowledge Glyph on Wikipedia Glyph, character and grapheme on Quora ...
Fonts for Mozilla's MathML engine
ystems, consider installing a MATH font using your package manager. Note that these fonts are generally delivered with TeX distributions such as TeX Live, but you might need to follow specific instructions so that your system is aware of the fonts. As a last resort, install the MathML fonts add-on. Advanced setup Arabic Mathematical Alphabetic Symbols Currently, very few fonts have appropriate
glyphs for the Arabic Mathematical Alphabetic Symbols. If you are likely to need these characters, we recommend to install the XITS or Amiri fonts. Installation without Administrator Privilege If you need to install fonts on a system without adminstrator privilege, the easiest option is to use math font the MathML-fonts add-on. Note that using the add-on is not optimal since it forces your Gecko brows...
Mozilla Web Developer FAQ
, port) as the content that uses them unless the fonts are served with the appropriate Cross-Origin Resource Sharing HTTP headers. Downloadable fonts in the EOT format are not supported. If you use downloadable fonts, please make sure the fonts have the right Unicode mappings and the content uses the right Unicode characters. The past practice of displaying non-Latin text by assigning non-Latin
glyphs to Latin code points breaks copying and pasting, breaks searching on the page, breaks indexing by search engines and breaks readability in browsers that do not support downloadable fonts (e.g. legacy browsers or mobile browsers that opt not to download fonts due to file size). Why aren't symbol/dingbat fonts working? They are working. Characters in HTML 4 and XML documents are Unicode character...
SVGAltGlyphElement - Web APIs
The SVGAltGlyphElement interface represents an <altglyph> element. This interface makes it possible to implement more sophisticated and particular glyph characters. For some textal representations as: ligatures (e.g. ae, ss, etc ), special-purpose fonts (e.g. musical symbols) or even alternate
glyphs such as Asian text strings it is required that a different set of
glyphs be used than the normal given character data. Properties This interface also inherits properties from its parent interface, SVGGraphicsElement. SVGAltGlyphElement.glyphRef It corresponds to the attribute glyphRef on the given element. It's data type is 'String'. It defines the glyph identifier, whose format is dependent on the 'format' of the given font. SVGAltGlyphElement.format It corresponds to the attribute form...
Cognitive accessibility - Accessibility
word. Link to a list of pronunciations. Provide a glossary with pronunciation. Use the <ruby> element to illustrate how a word is pronounced. Providing guidance on how to pronounce words helps many different kinds of people, including those who prefer to read aloud, non-native language speakers, and people who may unfamiliar with the meaning of a term in context. Another solution is to use
glyphs or diacritical marks to illustrate pronunciation. However, if this technique is used, there must be a mechanism to turn it off. Further, it is helpful to link to a guide to the marks being used, as their meaning may not be obvious. Predictability WCAG Guideline 3.2 states "make web pages appear and operate in predictable ways." This is a tenet of good user experience design. Consistency is espe...
Perceivable - Accessibility
nd audio (AAA) Prerecorded audio recordings that primarily feature speech should have minimal background noise, so the content can be easily understood. 1.4.8 Visual presentation (AAA) For text content presentation, the following should be true: Foreground and background colors should be user-selectable. Text blocks should be no wider than 80 characters (or
glyphs), for maximum readability. Text should not be fully justified (e.g., text-align: justify;). Line height should be at least 1.5 times the text size within paragraphs (e.g., line-height: 1.5;), and at least 2.25 times the text size between paragraphs (e.g., padding: 2.25rem;). When the text size is doubled, the content should not need to be scrolled. 1.4.9 Image...
font-style - CSS: Cascading Style Sheets
inition Related at-rule@font-faceInitial valuenormalComputed valueas specified Formal syntax normal | italic | oblique <angle>{0,2} Examples Specifying an italic font style As an example, consider the garamond font family, in its normal form, we get the following result: @font-face { font-family: garamond; src: url('garamond.ttf'); } The italicized version of this text uses the same
glyphs present in the unstyled version, but they are artificially sloped by a few degrees. On the other hand, if a true italicized version of the font family exists, we can include it in the src descriptor and specify the font style as italic, so that it is clear that the font is italicized. True italics use different
glyphs and are a bit different from their upright counterparts, having some unique ...
CSS Fonts - CSS: Cascading Style Sheets
icode-range @font-feature-values Guides Fundamental text and font styling In this beginner's learning article we go through all the basic fundamentals of text/font styling in detail, including setting font weight, family and style, font shorthand, text alignment and other effects, and line and letter spacing. OpenType font features guide Font features or variants refer to different
glyphs or character styles contained within an OpenType font. These include things like ligatures (special
glyphs that combine characters like 'fi' or 'ffl'), kerning (adjustments to the spacing between specific letterform pairings), fractions, numeral styles, and a number of others. These are all referred to as OpenType Features, and are made available to use on the web via specific properties and a lo...
CSS Overflow - CSS: Cascading Style Sheets
when the content of a box extends past one or more of the box's edges. Ink overflow and scrollable overflow There are two types of overflow that you might encounter in CSS. The first is described as ink overflow. This is the overflow of painting effects which do not affect layout or otherwise extend the scrollable overflow region, such as box shadows, border images, text decoration, overhanging
glyphs, outlines, etc. The overflow that we sometimes need to manage in CSS is described as scrollable overflow. This is the content appearing outside of the box for which scrolling mechanisms need to be provided. The overflow properties are how we can control what happens when content overflows a box. Basic example The following interactive example shows how changing the value of the overflow prope...
font-optical-sizing - CSS: Cascading Style Sheets
contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request. Syntax /* keyword values */ font-optical-sizing: none; font-optical-sizing: auto; /* default */ /* Global values */ font-optical-sizing: inherit; font-optical-sizing: initial; font-optical-sizing: unset; Values none The browser will not modify the shape of
glyphs for optimal viewing. auto The browser will modify the shape of
glyphs for optimal viewing. Description Optical sizing is enabled by default for fonts that have an optical size variation axis. The optical size variation axis is represented by opsz in font-variation-settings. When optical sizing is used, small text sizes are often rendered with thicker strokes and larger serifs, whereas large...
font-style - CSS: Cascading Style Sheets
ct, please clone https://github.com/mdn/interactive-examples and send us a pull request. Italic font faces are generally cursive in nature, usually using less horizontal space than their unstyled counterparts, while oblique faces are usually just sloped versions of the regular face. When the specified style is not available, both italic and oblique faces are simulated by artificially sloping the
glyphs of the regular face (use font-synthesis to control this behavior). Syntax font-style: normal; font-style: italic; font-style: oblique; font-style: oblique 10deg; /* Global values */ font-style: inherit; font-style: initial; font-style: unset; The font-style property is specified as a single keyword chosen from the list of values below, which can optionally include an angle if the keyword is ...
text-orientation - CSS: Cascading Style Sheets
orientation: inherit; text-orientation: initial; text-orientation: unset; The text-orientation property is specified as a single keyword from the list below. Values mixed Rotates the characters of horizontal scripts 90? clockwise. Lays out the characters of vertical scripts naturally. Default value. upright Lays out the characters of horizontal scripts naturally (upright), as well as the
glyphs for vertical scripts. Note that this keyword causes all characters to be considered as left-to-right: the used value of direction is forced to be ltr. sideways Causes characters to be laid out as they would be horizontally, but with the whole line rotated 90? clockwise. sideways-right An alias to sideways that is kept for compatibility purposes. use-glyph-orientation On SVG elements, this k...
writing-mode - CSS: Cascading Style Sheets
t flows vertically from top to bottom, and the next vertical line is positioned to the right of the previous line. For rtl scripts, content flows vertically from bottom to top, and the next vertical line is positioned to the left of the previous line. sideways-rl For ltr scripts, content flows vertically from bottom to top. For rtl scripts, content flows vertically from top to bottom. All the
glyphs, even those in vertical scripts, are set sideways toward the right. sideways-lr For ltr scripts, content flows vertically from top to bottom. For rtl scripts, content flows vertically from bottom to top. All the
glyphs, even those in vertical scripts, are set sideways toward the left. lr Deprecated except for SVG1 documents. For CSS, use horizontal-tb instead. lr-tb Deprecated except ...
direction - SVG: Scalable Vector Graphics
The direction attribute specifies the inline-base direction of a <text> or <tspan> element. It defines the start and end points of a line of text as used by the text-anchor and inline-size properties. It also may affect the direction in which characters are positioned if the unicode-bidi property's value is either embed or bidi-override. It applies only to
glyphs oriented perpendicular to the inline-base direction, which includes the usual case of horizontally-oriented Latin or Arabic text and the case of narrow-cell Latin or Arabic characters rotated 90 degrees clockwise relative to a top-to-bottom inline-base direction. In many cases, the bidirectional Unicode algorithm produces the desired result automatically, so this attribute doesn't need to be specified in those cases. For other cases,...
g1 - SVG: Scalable Vector Graphics
The g1 attribute specifies a list of glyph names which identify a set of possible first
glyphs in the kerning pair. All
glyphs with the given glyph name are included in the set. The total set of possible first
glyphs in the kerning pair is the union of
glyphs specified by the u1 and g1 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible first
glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition...
g2 - SVG: Scalable Vector Graphics
The g2 attribute specifies a list of glyph names which identify a set of possible second
glyphs in the kerning pair. All
glyphs with the given glyph name are included in the set. The total set of possible second
glyphs in the kerning pair is the union of
glyphs specified by the u2 and g2 attributes. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <name># Default value None Animatable No <name># This value indicates a comma-separated sequence of glyph names (i.e., values that match glyph-name attributes on <glyph> elements) which identify a set of possible second
glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edi...
glyph-orientation-horizontal - SVG: Scalable Vector Graphics
only on the following five elements: <altGlyph>, <textPath>, <text>, <tref>, and <tspan> Context notes Value <angle> Default value 0deg Animatable No <angle> The value of the angle is restricted to 0, 90, 180, and 270 degrees. If another angle is specified, it is rounded to the closest of the permitted values. A value of 0deg indicates that all
glyphs are set with the top of the
glyphs oriented towards the reference orientation. A value of 90deg indicates an orientation of 90 degrees clockwise from the reference orientation. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'glyph-orientation-horizontal' in that specification. Recommendation I...
glyph-orientation-vertical - SVG: Scalable Vector Graphics
ters should be auto-rotated may vary across user agents. The determination is based on a complex interaction between country, language, script, character properties, font, and character context. <angle> The value of the angle is restricted to 0, 90, 180, and 270 degrees. If another angle is specified, it is rounded to the closest of the permitted values. A value of 0deg indicates that all
glyphs are set with the top of the
glyphs oriented towards the reference orientation. A value of 90deg indicates an orientation of 90 degrees clockwise from the reference orientation. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'glyph-orientation-vertical' in that specification. Recommendation Ini...
hanging - SVG: Scalable Vector Graphics
The hanging attribute indicates the alignment coordinate for
glyphs to achieve hanging baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'hanging' in that specification. Recommendation Initial definition ...
horiz-origin-x - SVG: Scalable Vector Graphics
Only one element is using this attribute: <font> Usage notes Value <number> Default value 0 Animatable No <number> This value indicates the x-coordinate of the origin of a glyph for horizontally oriented text. ...
horiz-origin-y - SVG: Scalable Vector Graphics
Only one element is using this attribute: <font> Usage notes Value <number> Default value 0 Animatable No <number> This value indicates the x-coordinate of the origin of a glyph for horizontally oriented text. ...
ideographic - SVG: Scalable Vector Graphics
The ideographic attribute indicates the alignment coordinate for
glyphs to achieve ideographic baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'ideographic' in that specification. Recommendation Initial definition ...
k - SVG: Scalable Vector Graphics
The k attribute specifies the amount for decreasing the spacing between the two
glyphs in a kerning pair. The value is in the font coordinate system. This attribute is required. Two elements are using this attribute: <hkern> and <vkern> Context notes Value <number> Default value None Animatable No <number> This value indicates the amount for decreasing the spacing between the two
glyphs in the kerning pair. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'k' in that specification. Recommendation Initial definition ...
mathematical - SVG: Scalable Vector Graphics
The mathematical attribute indicates the alignment coordinate for
glyphs to achieve mathematical baseline alignment for horizontally oriented glyph layouts. The value is an offset in the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'mathematical' in that specification. Recommendation Initial definition ...
stemv - SVG: Scalable Vector Graphics
This information is often tied to hinting, and may not be directly accessible in some font formats. The measurement is meant for the dominant vertical stem in the font because there might be different groupings of vertical stems (e.g., one main one, and one lighter weight one as for an uppercase "M" or "N"). If this attribute is used, the units-per-em must also be used. ...
unicode-range - SVG: Scalable Vector Graphics
The unicode-range attribute defines the range of ISO 10646 characters possibly covered by the
glyphs in a font. Only one element is using this attribute: <font-face> Usage notes Value <urange># Default value None Animatable No <urange># This value is a comma-separated list of ISO 10646 characters possibly covered by the
glyphs in the font. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'unicode-range' in that specification. Recommendation Initial definition ...
v-hanging - SVG: Scalable Vector Graphics
The v-hanging attribute indicates the alignment coordinate for
glyphs to achieve hanging baseline alignment. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs to achieve hanging baseline alignment. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-hanging' in that specification. Recommendation Initial definition ...
v-ideographic - SVG: Scalable Vector Graphics
The v-ideographic attribute indicates the alignment coordinate for
glyphs to achieve ideographic baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-ideographic' in that specification. Recommendation Initial definition ...
v-mathematical - SVG: Scalable Vector Graphics
The v-mathematical attribute indicates the alignment coordinate for
glyphs to achieve mathematical baseline alignment for vertically oriented glyph layouts. The value is an offset in the font coordinate system relative to the glyph-specific vert-origin-x attribute. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the alignment coordinate for the
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'v-mathematical' in that specification. Recommendation Initial definition ...
widths - SVG: Scalable Vector Graphics
Value <number> Default value None Animatable No <number> This value is a comma-separated list of UCS range values as defined in ISO 10646, each followed by one or more glyph widths. If this attribute is used, the units-per-em attribute must also be used. If the range is omitted, a range of U+0-7FFFFFFF is assumed which covers all characters and their
glyphs. If not enough glyph widths are given, the last in the list is replicated to cover that range. If too many widths are provided, the extras are ignored. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'widths' in that specification. Recommendation Initial definition ...
x-height - SVG: Scalable Vector Graphics
The x-height attribute indicates the height of lowercase
glyphs in the font within the font coordinate system. Only one element is using this attribute: <font-face> Usage notes Value <number> Default value None Animatable No <number> This value indicates the height of lowercase
glyphs. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'x-height' in that specification. Recommendation Initial definition ...
<altGlyphDef> - SVG: Scalable Vector Graphics
Usage context CategoriesText content elementPermitted contentEither: one or more <glyphRef> elements, or one or more <altGlyphItem> elements Attributes Global attributes Core attributes Specific attributes None DOM Interface This element implements the SVGAltGlyphDefElement interface. ...
<hkern> - SVG: Scalable Vector Graphics
This process is known as kerning. Usage context CategoriesFont elementPermitted contentEmpty Attributes Global attributes Core attributes Specific attributes u1 g1 u2 g2 k DOM Interface This element implements the SVGHKernElement interface. ...
<text> - SVG: Scalable Vector Graphics
tage> ; Default value: 0; Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate
glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAnd
Glyphs; Default value: spacing; Animatable: yes textLength A width that the text should be scaled to fit. Value type: <length>|<percentage> ; Default value: none; Animatable...
<tspan> - SVG: Scalable Vector Graphics
e> ; Default value: none; Animatable: yes dx Shifts the text position horizontally from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes dy Shifts the text position vertically from a previous text element. Value type: <length>|<percentage> ; Default value: none; Animatable: yes rotate Rotates orientation of each individual glyph. Can rotate
glyphs individually. Value type: <list-of-number> ; Default value: none; Animatable: yes lengthAdjust How the text is stretched or compressed to fit the width defined by the textLength attribute. Value type: spacing|spacingAnd
Glyphs; Default value: spacing; Animatable: yes textLength A width that the text should be scaled to fit. Value type: <length>|<percentage> ; Default value: none; Animatable...
<vkern> - SVG: Scalable Vector Graphics
This process is known as kerning. Usage context CategoriesFont elementPermitted contentEmpty Attributes Global attributes Core attributes Specific attributes u1 g1 u2 g2 k DOM Interface This element implements the SVGVKernElement interface. ...
Texts - SVG: Scalable Vector Graphics
se, there are y and dy for vertical displacement. rotate Rotate all characters by this degree. A list of numbers makes each character rotate to its respective value, with remaining characters rotating according to the last value. textLength This is a more obscure attribute giving the calculated length of the string. It is meant to allow the rendering engine to fine-tune the positions of the
glyphs when its own measured text length doesn't meet the one provided here. textPath This element fetches via its xlink:href attribute an arbitrary path and aligns the characters, that it encircles, along this path: <path id="my_path" d="M 20,20 C 80,60 100,40 120,20" fill="transparent" /> <text> <textPath xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#my_path"> A curve. </textPath...