summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-24 13:47:05 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-24 13:50:09 +0000
commit87a1e49b5e16bbb8226286852300c5e20c000513 (patch)
tree68f23fd04ca8376df243a60be85f15e842be7cf9 /vcl
parentb8cbbd03950a7bd7324d2e75b34620792a3b23c9 (diff)
Revert "Resolves: #i124375# force soft-hyphen visibility for CoreText..."
prefer 4dba6f5837539746293ef6808ea39a764ab7654d "fdo#67370: Hyphens are not visible in tagged PDF" This reverts commit 8214c1d6156c90cbf259b15cf1c8e15ea1c70daf.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/quartz/ctlayout.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/vcl/quartz/ctlayout.cxx b/vcl/quartz/ctlayout.cxx
index e479d31853f6..b8b1b98e6ce0 100644
--- a/vcl/quartz/ctlayout.cxx
+++ b/vcl/quartz/ctlayout.cxx
@@ -108,20 +108,11 @@ bool CTLayout::LayoutText( ImplLayoutArgs& rArgs )
if( mnCharCount <= 0 )
return false;
- // prepare the string to be layouted by CoreText
+ // create the CoreText line layout
CFStringRef aCFText = CFStringCreateWithCharactersNoCopy( NULL,
rArgs.mpStr + mnMinCharPos,
mnCharCount,
kCFAllocatorNull );
-
- // #i124375# force soft-hyphen visibility to meet the expectations of Writer+EditEngine
- if( CFStringFind( aCFText, (CFStringRef)@"\u00AD", 0).length > 0 )
- {
- NSString* pDashStr = [(NSString*)aCFText stringByReplacingOccurrencesOfString: @"\u00AD" withString: @"-"];
- aCFText = CFStringCreateCopy( NULL, (CFStringRef)pDashStr );
- }
-
- // create the CoreText line layout using the requested text style
// CFAttributedStringCreate copies the attribues parameter
mpAttrString = CFAttributedStringCreate( NULL, aCFText, mpTextStyle->GetStyleDict() );
mpCTLine = CTLineCreateWithAttributedString( mpAttrString );