sw/source/core/inc/swfont.hxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 68632a752ddac08d0bf0b3405fa767540afd7e80
Author: Miklos Vajna <[email protected]>
AuthorDate: Mon Apr 17 20:03:47 2023 +0200
Commit: Miklos Vajna <[email protected]>
CommitDate: Tue Apr 18 08:30:47 2023 +0200
sw: document SwFont
Explain why it's not like SwFont would just derive from SvxFont
directly.
Change-Id: I78bd536654831836351029badcaa47e6cc81c7eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150529
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <[email protected]>
diff --git a/sw/source/core/inc/swfont.hxx b/sw/source/core/inc/swfont.hxx
index 38936574a471..86f44fb3eb64 100644
--- a/sw/source/core/inc/swfont.hxx
+++ b/sw/source/core/inc/swfont.hxx
@@ -128,6 +128,9 @@ enum class SwFontScript
// mostly used as a "unknown script" marker
#define SW_SCRIPTS (SwFontScript(int(SwFontScript::LAST)+1))
+/// To take Asian or other languages into consideration, an SwFont object
consists of 3 SwSubFonts
+/// (Latin, CJK, and CTL). The m_nActual member indicates the current script,
i.e. the currently
+/// active subfont.
class SwFont
{
// CJK == Chinese, Japanese, Korean