sw/source/uibase/config/fontcfg.cxx | 4 ++++ sw/source/uibase/inc/fontcfg.hxx | 1 + 2 files changed, 5 insertions(+)
New commits: commit 4ffa5f2d741368bcc70ec3fd5d5ca1249cfc1e37 Author: DaeHyun Sung <sungdh86+...@gmail.com> AuthorDate: Tue Jun 20 20:24:29 2023 +0900 Commit: Heiko Tietze <heiko.tie...@documentfoundation.org> CommitDate: Mon Jul 3 09:20:25 2023 +0200 tdf#155947 Korean word default font size is 10pt Korean word processors(HWP & MS Word) default font size is 10pt. So, I set to 10pt on LibreOffice Writer. Change-Id: Ic31332e37b3b450589ded6df243aae6961fdf394 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153324 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org> diff --git a/sw/source/uibase/config/fontcfg.cxx b/sw/source/uibase/config/fontcfg.cxx index bd57d81e9792..264d50bc8a02 100644 --- a/sw/source/uibase/config/fontcfg.cxx +++ b/sw/source/uibase/config/fontcfg.cxx @@ -264,6 +264,10 @@ sal_Int32 SwStdFontConfig::GetDefaultHeightFor(sal_uInt16 nFontType, LanguageTyp { nRet = nRet * 4 / 3; } + if( eLang == LANGUAGE_KOREAN ) + { + nRet = FONTSIZE_KOREAN_DEFAULT; + } return nRet; } diff --git a/sw/source/uibase/inc/fontcfg.hxx b/sw/source/uibase/inc/fontcfg.hxx index 3fede9ba949d..786b06d869ea 100644 --- a/sw/source/uibase/inc/fontcfg.hxx +++ b/sw/source/uibase/inc/fontcfg.hxx @@ -49,6 +49,7 @@ //pt-size of fonts #define FONTSIZE_DEFAULT 240 +#define FONTSIZE_KOREAN_DEFAULT 200 #define FONTSIZE_CJK_DEFAULT 210 #define FONTSIZE_OUTLINE 280