There is a global singleton object in RVDefReadProps unit (or fmxRVDefReadProps in FireMonkey version): RVDefaultLoadProperties.
It defines default properties for reading HTML and Markdown, for all TRichView and ScaleRichView controls.
Font names
RVDefaultLoadProperties has properties DefaultFontName and DefaultMonoSpacedFontName.
You can define more default fonts using GenericFontNames[] array property.
An index of this property can be one of values: rvgffRVDefault, rvgffSerif, rvgffSansSerif, rvgffMonospace, rvgffCursive, rvgffFantasy, rvgffSystemUI, rvgffUISerif, rvgffUISansSerif,r vgffUIMonospace, rvgffUIRrounded, rvgffEmoji, rvgffMath, rvgffFangsong, rvgffRVSymbols, rvgffRVBullets.
Most these values correspond to values of
CSS font-family.
DefaultFontName simply provides access to GenericFontNames[rvgffRVDefault], DefaultMonoSpacedFontName to GenericFontNames[rvgffMonospace].
Font sizes
RVDefaultLoadProperties has property DefaultFontSizeDouble measured in half-points (default value is 24 meaning 12pt).
You can define more sizes using DefaultFontSizesDouble[] array property.
An index of this property can be one of values:
Code: Select all
VALUE HTML SIZE CSS SIZE
rvfstDefault, // (used if unspecified)
rvfstXXSmall, // 1 xx-small
rvfstXSmall, // - x-small
rvfstSmall, // 2 small
rvfstMedium, // 3 medium
rvfstLarge, // 4 large
rvfstXLarge, // 5 x-large
rvfstXXLarge, // 6 xx-large
rvfstXXXLarge); // 7 xxx-large
DefaultFontSizeDouble simply provides access to DefaultFontSizesDouble[rvfstDefault].
Background color
The default background color is hard-coded, clWindow (or white for FireMonkey).
Should I add a property?