Browse Source

Revert "Enhanced: Improved the visual quality of the underline text decoration (gaps)"

This reverts commit bdfd7c61f1ae51ef90905245279ab87c84bd1ebd.
Marcin Ziąbek 1 year ago
parent
commit
c2ae64309c
1 changed files with 1 additions and 9 deletions
  1. 1 9
      Source/QuestPDF/Infrastructure/TextStyle.cs

+ 1 - 9
Source/QuestPDF/Infrastructure/TextStyle.cs

@@ -86,7 +86,7 @@ namespace QuestPDF.Infrastructure
                 DecorationColor = DecorationColor ?? Colors.Black,
                 DecorationType = CreateDecoration(),
                 
-                DecorationMode = GetDecorationMode(),
+                DecorationMode = TextStyleConfiguration.TextDecorationMode.Through,
                 DecorationStyle = DecorationStyle ?? TextStyleConfiguration.TextDecorationStyle.Solid,
                 DecorationThickness = DecorationThickness ?? 1,
                 
@@ -108,14 +108,6 @@ namespace QuestPDF.Infrastructure
                 
                 return result;
             }
-            
-            TextStyleConfiguration.TextDecorationMode GetDecorationMode()
-            {
-                if (HasUnderline == true)
-                    return TextStyleConfiguration.TextDecorationMode.Gaps;
-                
-                return TextStyleConfiguration.TextDecorationMode.Through;
-            }
 
             TextStyleConfiguration.TextDecoration CreateDecoration()
             {