editeng/source/editeng/impedit3.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 5ad110499343d2ec0469e605168c1c1cd129d0e7
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Jun 12 14:35:11 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Jun 12 17:15:26 2024 +0200

    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/+/168733
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index b28532ae46d0..f1d9a706c9e0 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -3063,6 +3063,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 );

Reply via email to