Paged.The open publishing system
The format atlas
Element referenceStories

<CharacterStyleRange> / Element reference

CharacterStyleRange

The CharacterStyleRange element in IDML: where it appears (Stories), its 57 attributes, their values, and how real documents use them.

Tier: ProProIIIreference

Definition

A run of characters sharing a character style and overrides, inside a paragraph.

Lives in
Stories 121 and XML 271
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

Where 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

AttributeTypeValuesDefaultSeen in
AppliedCharacterStyle#
The character style applied, by its Self, such as CharacterStyle/$ID/[No character style].
reference to CharacterStyleany—100%
varies in 53
PointSize#
The type size, in points.
integer or real (pt)0.1 to 12961224.9%
varies in 74
AppliedFont#
The font family, such as Minion Pro; FontStyle picks the face within it.
stringany—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 Colorany—20.3%
varies in 60
FontStyle#
The face within the font family, such as Regular or Bold Italic.
keyword or textany—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, unit0 or more—16.9%
varies in 51
Tracking#
Even spacing added between all characters, in thousandths of an em.
integer or real-1000 to 10000014.3%
varies in 42
StrokeWeight#
The stroke's thickness, in points.
integer or realany—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 realany—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.
realany—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.
realany—8%
varies in 24
Capitalization#
How the letters are shown: Normal, AllCaps, SmallCaps or CapToSmallCap. The stored characters keep their case.
keywordNormalAllCaps21SmallCapsCapToSmallCap or a named valueNormal7%
AppliedLanguage#
The text's language, such as $ID/English: USA. It picks the dictionaries used for hyphenation and spelling.
builtin or keywordany—6.6%
varies in 12
StrokeAlignment#
Where the stroke sits on the path: centred on it (CenterAlignment, the default), inside it or outside it.
keywordCenterAlignment17—5.6%
DiacriticPosition#keywordOpentypePosition8OpentypePositionFromBaseline3—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.
integerany—3.3%
varies in 5
OTFContextualAlternate#
Whether the font's contextual alternates are used (the OpenType calt feature).
booleanfalse8—3%
varies in 1
Ligatures#
Whether the font's standard ligatures, such as fi and fl, are used.
booleanfalse7true2.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).
keywordMetricsOpticalNone or a named valueMetrics2%
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.
keywordNextPageNumber6—2%
StrokeColor#
The swatch the stroke is painted with, by its Self. Swatch/None means no stroke.
reference to Colorany—2%
varies in 6
BaselineShift#
Moves the glyphs up (positive) or down (negative) from the baseline, in points.
integer or real (pt)any01.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 realany—1.3%
varies in 4
GradientFillStart#
Where a gradient fill starts, as x y in the object's own coordinates.
list of numbersany—1.3%
varies in 4
KentenFontStyle
a child of Properties
#
The face, within KentenFont, the emphasis marks are set in.
enumerationany—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.
keywordany—1.3%
varies in 2
Position#
Superscript and subscript: Normal, Superscript, Subscript, or the font's OpenType forms OTSuperscript, OTSubscript, OTNumerator and OTDenominator.
keywordNormalSuperscript4SubscriptOTSuperscriptOTSubscriptOTNumeratorOTDenominator or a named valueNormal1.3%
RubyFontStyle
a child of Properties
#
The face, within RubyFont, the ruby text is set in.
enumerationany—1.3%
Underline#
Whether the text is underlined.
booleantrue4false1.3%
GradientFillAngle#
The direction of a linear gradient fill, in degrees. Used when the fill is a gradient.
integerany—1%
varies in 3
UnderlineOffset#
How far below the baseline the underline sits, in points.
integer or realany—1%
varies in 3
UnderlineWeight#
The thickness of the underline, in points.
integer or realany—1%
varies in 3
EndJoin#
How the stroke turns at corners: MiterEndJoin (pointed, the default), RoundEndJoin or BevelEndJoin.
keywordany—0.7%
HorizontalScale#
Stretches the glyphs horizontally, as a percentage; 100 is the font's own width.
real (percent)1 to 10001000.7%
varies in 1
KentenXScale#
Stretches the emphasis marks horizontally, as a percentage.
realany—0.7%
varies in 1
KerningValue#
Manual kerning at this position, in thousandths of an em, added to the automatic kerning.
integerany—0.7%
varies in 1
RubyXScale#
Stretches the ruby text horizontally, as a percentage.
realany—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.
referenceany—0.3%
varies in 1
ECTableColumnAlignOption#integerany—0.3%
ECTableColumnDeleteOption#integerany—0.3%
varies in 1
ECTableColumnMaximumWidthData#realany—0.3%
varies in 1
ECTableColumnMinimumWidthData#realany—0.3%
varies in 1
ECTableColumnWidthOption#integerany—0.3%
varies in 1
ECTableRowAttrGroupNameData#textany—0.3%
ECTableRowAttrPopulateWithData#integerany—0.3%
varies in 1
ECTableRowAttrRowTypeData#integerany—0.3%
ECTableRowDeleteOption#integerany—0.3%
KentenKind#
The emphasis mark (kenten) set beside each character of CJK text, such as KentenSesameDot; None for none. Punctuation takes no mark.
keywordany—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.
keywordany—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).
booleanany—0.3%
OTFOrdinal#
Whether the font's ordinal forms, such as the raised letters of 1st and 2nd, are used (OpenType ordn).
booleanany—0.3%
Ruby#booleanany—0.3%
RubyString#
The ruby text: a small reading aid, such as furigana, set above the run's characters (beside them in vertical text).
textany—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.
keywordany—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 8500.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.
objectany—0.3%
varies in 1
VerticalScale#
Stretches the glyphs vertically, as a percentage; 100 is the font's own height.
integer (percent)1 to 10001000.3%
The attributes documents set on 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

Page 1 of the example “One run under a visible and a hidden condition”, as InDesign exports it.
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%): Stories 121 and XML 271.
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

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

AttributeParseEditWrite
AppliedCharacterStylereadsstory.rs:1268appliedCharacterStylewritesemit.rs:168
PointSizereadsstory.rs:1272characterFontSizewritesemit.rs:1376
AppliedFontreadsstory.rs:1270characterFontFamilywritesrewrite.rs:8604
FillColorreadsstory.rs:1273characterFillColorwritesemit.rs:1360
FontStylereadsstory.rs:1271characterFontStylewritesemit.rs:1359
Leadingreadsstory.rs:1289characterLeadingwritesemit.rs:1379
Trackingreadsstory.rs:1282characterTrackingwritesemit.rs:1380
StrokeWeightreadsstory.rs:1314—writesemit.rs:1378
MiterLimitnot read—not written
KentenFontSizereadsstory.rs:1298—not written
RubyFontSizereadsstyles.rs:1106—not written
Capitalizationreadsstory.rs:1275characterCasewritesemit.rs:1362
AppliedLanguagereadsstory.rs:1319characterLanguagewritesemit.rs:1365
StrokeAlignmentnot read—not written
DiacriticPositionnot read—not written
FillTintreadsstory.rs:1274—writesemit.rs:1377
OTFContextualAlternatereadsstory.rs:83—not written
Ligaturesreadsstory.rs:1316characterLigatureswritesemit.rs:1394
KerningMethodreadsstory.rs:1318characterKerningMethodwritesemit.rs:1364
PageNumberTypereadsstory.rs:1261—writesemit.rs:1413
StrokeColorreadsstory.rs:1310—writesemit.rs:1361
BaselineShiftreadsstory.rs:1276characterBaselineShiftwritesemit.rs:1381
GradientFillLengthnot read—not written
GradientFillStartnot read—not written
KentenFontStylenot read—not written
ParagraphBreakTypenot read—not written
Positionreadsstory.rs:1281characterPositionwritesemit.rs:1363
RubyFontStylenot read—not written
Underlinereadsstory.rs:1283characterUnderlinewritesemit.rs:835
GradientFillAnglenot read—not written
UnderlineOffsetnot read—writesemit.rs:838
UnderlineWeightnot read—writesemit.rs:822
EndJoinnot read—not written
HorizontalScalereadsstory.rs:1277characterHorizontalScalewritesemit.rs:1382
KentenXScalereadsstyles.rs:1113—not written
KerningValuenot read—not written
RubyXScalereadsstyles.rs:1107—not written
AppliedConditionsreadsstory.rs:1327appliedConditionswritesemit.rs:1373
ECTableColumnAlignOptionnot read—not written
ECTableColumnDeleteOptionnot read—not written
ECTableColumnMaximumWidthDatanot read—not written
ECTableColumnMinimumWidthDatanot read—not written
ECTableColumnWidthOptionnot read—not written
ECTableRowAttrGroupNameDatanot read—not written
ECTableRowAttrPopulateWithDatanot read—not written
ECTableRowAttrRowTypeDatanot read—not written
ECTableRowDeleteOptionnot read—not written
KentenKindreadsstory.rs:1294—not written
OTFFigureStylereadsstory.rs:84—not written
OTFFractionreadsstory.rs:77—not written
OTFOrdinalreadsstory.rs:78—not written
Rubynot read—not written
RubyStringreadsstory.rs:1293—not written
RubyTypereadsstory.rs:1292—not written
Skewreadsstory.rs:1280characterSkewwritesemit.rs:1384
UnderlineColorreadsstyles.rs:151characterUnderlineColorwritesemit.rs:826
VerticalScalereadsstory.rs:1279characterVerticalScalewritesemit.rs:1383

In the capability record

FeatureParseRenderEditEvidence
Story parts (ParagraphStyleRange / CharacterStyleRange trees)
shipped
yes——All linked evidence is passing (6 tests current)

Rendered against InDesign

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.

On this page