<CharacterStyleRange> / Element reference
CharacterStyleRange
The CharacterStyleRange element in IDML: where it appears (Stories), its 57 attributes, their values, and how real documents use them.
Definition
A run of characters sharing a character style and overrides, inside a paragraph.
- Lives in
Stories121 andXML271- Frequency
- In 301 of the 305 documents of the census (98.7%), 2026-10-12
- Attributes
- 57 observed, 35 of them vary between documents
- Discussed in
- Read one by hand, Story structure, Your first story, Build a table in a story, Glossary and Tables in the text flow
Structure
Relationships
Contains
Content301XMLElement269Br89Properties67Table21TextFrame3TextVariableInstance2Footnote1Group1HyperlinkTextSource1PageReference1Rectangle1- and 1 more
CharacterStyleRange sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Default | Seen in |
|---|---|---|---|---|
| AppliedCharacterStyle# The character style applied, by its Self, such as CharacterStyle/$ID/[No character style]. | reference to CharacterStyle | any | — | 100% varies in 53 |
| PointSize# The type size, in points. | integer or real (pt) | 0.1 to 1296 | 12 | 24.9% varies in 74 |
| AppliedFont# The font family, such as Minion Pro; FontStyle picks the face within it. | string | any | — | 21.6% varies in 56 |
| FillColor# The swatch that fills the object (for text, its glyphs), by its Self, such as Color/Black. Swatch/None means no fill. | reference to Color | any | — | 20.3% varies in 60 |
| FontStyle# The face within the font family, such as Regular or Bold Italic. | keyword or text | any | — | 17.9% varies in 47 |
| Leading a child of Properties #The distance between baselines, in points, or Auto (the point size times the paragraph's AutoLeading). A line takes the largest leading among its runs. | enumeration, unit | 0 or more | — | 16.9% varies in 51 |
| Tracking# Even spacing added between all characters, in thousandths of an em. | integer or real | -1000 to 10000 | 0 | 14.3% varies in 42 |
| StrokeWeight# The stroke's thickness, in points. | integer or real | any | — | 11.6% varies in 29 |
| MiterLimit# For pointed corners, how far the point may reach, as a multiple of the stroke weight, before the corner is bevelled instead. | integer or real | any | — | 11% varies in 27 |
| KentenFontSize# The emphasis marks' size in points; -1, the default, makes them half the size of the characters they mark, each centred on its character with its em box on theirs. | real | any | — | 8% varies in 24 |
| RubyFontSize# The ruby's size in points; -1, the default, sets it at half the size of its base characters. Its em box stands on theirs. | real | any | — | 8% varies in 24 |
| Capitalization# How the letters are shown: Normal, AllCaps, SmallCaps or CapToSmallCap. The stored characters keep their case. | keyword | NormalAllCaps21SmallCapsCapToSmallCap or a named value | Normal | 7% |
| AppliedLanguage# The text's language, such as $ID/English: USA. It picks the dictionaries used for hyphenation and spelling. | builtin or keyword | any | — | 6.6% varies in 12 |
| StrokeAlignment# Where the stroke sits on the path: centred on it ( CenterAlignment, the default), inside it or outside it. | keyword | CenterAlignment17 | — | 5.6% |
| DiacriticPosition# | keyword | OpentypePosition8OpentypePositionFromBaseline3 | — | 3.3% varies in 3 |
| FillTint# The fill colour's strength as a percentage, 0–100. -1 means no tint is set, the same as leaving the attribute out. | integer | any | — | 3.3% varies in 5 |
| OTFContextualAlternate# Whether the font's contextual alternates are used (the OpenType calt feature). | boolean | false8 | — | 3% varies in 1 |
| Ligatures# Whether the font's standard ligatures, such as fi and fl, are used. | boolean | false7 | true | 2.3% |
| KerningMethod# How automatic kerning is set: $ID/Metrics (the default: the font's kerning pairs, and a CJK font's proportional widths, palt), $ID/Optical (from the glyph shapes) or $ID/None (kana and kanji a full em each). | keyword | MetricsOpticalNone or a named value | Metrics | 2% varies in 3 |
| PageNumberType# For a page-number marker ( <?ACE 18?>) in the range: AutoPageNumber (this page), NextPageNumber or PreviousPageNumber; TextVariable marks a variable instance. | keyword | NextPageNumber6 | — | 2% |
| StrokeColor# The swatch the stroke is painted with, by its Self. Swatch/None means no stroke. | reference to Color | any | — | 2% varies in 6 |
| BaselineShift# Moves the glyphs up (positive) or down (negative) from the baseline, in points. | integer or real (pt) | any | 0 | 1.7% varies in 5 |
| GradientFillLength# How far a gradient fill runs from its first stop to its last, in points; for a radial gradient, its radius. | integer or real | any | — | 1.3% varies in 4 |
| GradientFillStart# Where a gradient fill starts, as x y in the object's own coordinates. | list of numbers | any | — | 1.3% varies in 4 |
| KentenFontStyle a child of Properties #The face, within KentenFont, the emphasis marks are set in. | enumeration | any | — | 1.3% |
| ParagraphBreakType# On a range holding a paragraph mark ( <Br/>): a break such as NextColumn, NextFrame or NextPage that moves the text after it; Anywhere is a plain paragraph end. | keyword | any | — | 1.3% varies in 2 |
| Position# Superscript and subscript: Normal, Superscript, Subscript, or the font's OpenType forms OTSuperscript, OTSubscript, OTNumerator and OTDenominator. | keyword | NormalSuperscript4SubscriptOTSuperscriptOTSubscriptOTNumeratorOTDenominator or a named value | Normal | 1.3% |
| RubyFontStyle a child of Properties #The face, within RubyFont, the ruby text is set in. | enumeration | any | — | 1.3% |
| Underline# Whether the text is underlined. | boolean | true4 | false | 1.3% |
| GradientFillAngle# The direction of a linear gradient fill, in degrees. Used when the fill is a gradient. | integer | any | — | 1% varies in 3 |
| UnderlineOffset# How far below the baseline the underline sits, in points. | integer or real | any | — | 1% varies in 3 |
| UnderlineWeight# The thickness of the underline, in points. | integer or real | any | — | 1% varies in 3 |
| EndJoin# How the stroke turns at corners: MiterEndJoin (pointed, the default), RoundEndJoin or BevelEndJoin. | keyword | any | — | 0.7% |
| HorizontalScale# Stretches the glyphs horizontally, as a percentage; 100 is the font's own width. | real (percent) | 1 to 1000 | 100 | 0.7% varies in 1 |
| KentenXScale# Stretches the emphasis marks horizontally, as a percentage. | real | any | — | 0.7% varies in 1 |
| KerningValue# Manual kerning at this position, in thousandths of an em, added to the automatic kerning. | integer | any | — | 0.7% varies in 1 |
| RubyXScale# Stretches the ruby text horizontally, as a percentage. | real | any | — | 0.7% varies in 1 |
| AppliedConditions# The conditions applied to the run, as Condition ids separated by spaces. InDesign shows the run while any one of them is visible. | reference | any | — | 0.3% varies in 1 |
| ECTableColumnAlignOption# | integer | any | — | 0.3% |
| ECTableColumnDeleteOption# | integer | any | — | 0.3% varies in 1 |
| ECTableColumnMaximumWidthData# | real | any | — | 0.3% varies in 1 |
| ECTableColumnMinimumWidthData# | real | any | — | 0.3% varies in 1 |
| ECTableColumnWidthOption# | integer | any | — | 0.3% varies in 1 |
| ECTableRowAttrGroupNameData# | text | any | — | 0.3% |
| ECTableRowAttrPopulateWithData# | integer | any | — | 0.3% varies in 1 |
| ECTableRowAttrRowTypeData# | integer | any | — | 0.3% |
| ECTableRowDeleteOption# | integer | any | — | 0.3% |
| KentenKind# The emphasis mark (kenten) set beside each character of CJK text, such as KentenSesameDot; None for none. Punctuation takes no mark. | keyword | any | — | 0.3% |
| OTFFigureStyle# The digits used: Default (the font's own), or tabular or proportional with lining or oldstyle figures, such as TabularLining or ProportionalOldstyle. | keyword | any | — | 0.3% |
| OTFFraction# Whether the font's fractions are used, so that digits around a slash, such as 1/2, are set as one fraction (OpenType frac). | boolean | any | — | 0.3% |
| OTFOrdinal# Whether the font's ordinal forms, such as the raised letters of 1st and 2nd, are used (OpenType ordn). | boolean | any | — | 0.3% |
| Ruby# | boolean | any | — | 0.3% |
| RubyString# The ruby text: a small reading aid, such as furigana, set above the run's characters (beside them in vertical text). | text | any | — | 0.3% |
| RubyType# How the ruby is attached: PerCharacterRuby, the default, splits the ruby at its spaces and sets one part over each base character in turn (a ruby with no space goes over the first character whole); GroupRuby sets one ruby across the whole run. | keyword | any | — | 0.3% |
| Skew# Slants the glyphs by this many degrees, a false italic; positive values lean right and 0 is upright. | integer (degrees) | -85 to 85 | 0 | 0.3% |
| UnderlineColor a child of Properties #The swatch the underline is painted in, by its Self. It can also follow the colour of the text. | object | any | — | 0.3% varies in 1 |
| VerticalScale# Stretches the glyphs vertically, as a percentage; 100 is the font's own height. | integer (percent) | 1 to 1000 | 100 | 0.3% |
CharacterStyleRange (census of 2026-10-12, 305 documents). Seen in is the share of the 301 documents with a CharacterStyleRange that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Visualization

CharacterStyleRange in the example “One run under a visible and a hidden condition”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Visibility.Behavior
A run that names two conditions, one visible and one hidden, isolates the multi-condition rule; control runs show each condition on its own.
Shown, with its source and a live render, in Visibility.
A Condition is defined in designmap.xml as a direct child of Document; a run names it in AppliedConditions, and while the condition is hidden the run is not printed.
Shown, with its source and a live render, in Conditions and condition sets.
Three paragraphs in two ParagraphStyleRanges: <Br/> ends a paragraph, a U+2028 forced line break does not, and a new range starts only where paragraph attributes change.
Shown, with its source and a live render, in Read one by hand.
A ParagraphStyleRange is a style run, not a paragraph: the <Br/> character ends a paragraph, so two paragraphs can share one range.
Shown, with its source and a live render, in Your first story.
Evidence
- Observed
- In 301 of 305 documents (98.7%):
Stories121 andXML271. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
- InDesign checks
- One run under a visible and a hidden condition: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- A run hidden by a condition: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- Paragraph marks, a forced line break and a style run: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
- Two paragraphs in one story: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
Paged support
What Paged, one implementation of the format, does with CharacterStyleRange. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Reads 34 of the 57 attributes
- Render
- One feature of the capability record names this element (below); examples compared with InDesign below
- Edit
- 19 attributes map to a scriptable path for
paged.set - Write
- Writes 25 of the 57 attributes on IDML export
By attribute
In the capability record
| Feature | Parse | Render | Edit | Evidence |
|---|---|---|---|---|
| Story parts (ParagraphStyleRange / CharacterStyleRange trees) shipped | yes | — | — | All linked evidence is passing (6 tests current) |
Rendered against InDesign
- One run under a visible and a hidden condition: mean colour difference 0.037 ΔE, structural similarity 0.996, same fonts on both sides (checked 2026-10-11).
- A run hidden by a condition: mean colour difference 0.035 ΔE, structural similarity 0.997, same fonts on both sides (checked 2026-10-11).
- Paragraph marks, a forced line break and a style run: mean colour difference 0.018 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
- Two paragraphs in one story: mean colour difference 0.009 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names CharacterStyleRange.