TRVChatFonts

<< Click to display table of contents >>

TRVChatFonts

This is a class of Fonts property of TRVChat.

Unit [VCL/FMX] RVChat / fmxRVChat.

Syntax

TRVChatFonts = class (TPersistent)

Hierarchy

TObject

TPersistent

Description

This class contains properties defining fonts used in chat.

All properties are of the TRVFont type.

MessageFont: font for messages

UserNameFont: font for user names

QuoteFont: font for quoted text

DateFont: font for dates of message groups

TimeFont: font for message time

FileNameFont: font for names of files attached to messages

FileInfoFont: for for information about files attached to messages

DeletedMessageFont: font for information about message that was marked as deleted.

Default values

MessageFont: (10, [], rvclBlack)

UserNameFont: (10, [rvfsBold], rvclBlack*)

QuoteFont: (10, [rvfsItalic], rvclBlack)

DateFont: (10, [rvfsBold], rvclWhite)

TimeFont:  (9, [], rvclGray**)

FileNameFont: (10, [rvfsBold], rvclBlack)

FileInfoFont: f(9,  [], rvclGray)

DeletedMessageFont: (10,  [rvfsItalic], rvclGray)

* UserNameFont.Color is ignored; Chat.Users[].NameColor is used instead.

** If Chat.MessageStatusLine.StatusLineLocation = rvsllBelowInside, Chat.Users[].MessageInfoColor overrides TimeFont.Color.

All the font have Name = 'Segoe UI'. You can set the font name for all these fonts using the method

procedure SetFontName(const FontName: TRVFontName);

You can also use the method

procedure SetDefautlFontName;

to assign RVDefaultLoadProperties.DefaultFontName to all fonts. It is especially useful in cross-platform applications.

These properties are used by Chat.AddStyles to append text styles.

If you change the fonts while the chat is already displayed, call Chat.UpdateTextStyles to apply the new values.

See also:

TRVChat.LinkColor