summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-06-12 14:35:11 +0100
committerAndras Timar <andras.timar@collabora.com>2024-06-24 16:36:55 +0200
commit8350a8e981d0dbb93298c7ab2e227fb89f054f01 (patch)
tree3a142f89844f09dd542fa2380f295fd7e722fb64 /editeng
parent357fd9d649154bf8327bb002d1b3fcbffb351040 (diff)
Resolves: tdf#160401/#i78474# small caps do not exist in CTL fonts
so turn that off here in editeng where we know the script type Change-Id: I8e385d35910e378655deb21bce89c4335724a36d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168717 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Jenkins
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit3.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 32875bd76f0b..4ca2ec4918f6 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3029,6 +3029,10 @@ void ImpEditEngine::SeekCursor( ContentNode* pNode, sal_Int32 nPos, SvxFont& rFo
if ( (rFont.GetKerning() != FontKerning::NONE) && IsKernAsianPunctuation() && ( nScriptTypeI18N == i18n::ScriptType::ASIAN ) )
rFont.SetKerning( rFont.GetKerning() | FontKerning::Asian );
+ // tdf#160401/#i78474# small caps do not exist in CTL fonts, so turn that off here where we know the script type
+ if (nScriptTypeI18N == i18n::ScriptType::COMPLEX && rFont.IsCapital())
+ rFont.SetCaseMap(SvxCaseMap::NotMapped);
+
if (maStatus.DoNotUseColors())
{
rFont.SetColor( /* rColorItem.GetValue() */ COL_BLACK );