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

New commits:
commit 44529bbd1cad7840c17c53452d73f7f7fbe048c0
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Wed Jun 12 14:35:11 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Jun 13 13:20:12 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/+/168717
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Tested-by: Jenkins

diff --git a/editeng/source/editeng/impedit3.cxx 
b/editeng/source/editeng/impedit3.cxx
index 9817cf9441e3..88ac718ebbc3 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -2961,6 +2961,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