• Tomaž Vajngerl's avatar
    tdf#101854 Move to CommonSalLayout removed faux bold in macos · eb560651
    Tomaž Vajngerl yazdı
    Previously faux bold was drawn with setting a dictionary key
    kCTStrokeWidthAttributeName and a value of the stroke width. This
    stopped working because we don't use attributedString for drawing
    anymore but we always use CTFontDrawGlyphs and draw the glyphs,
    which doesn't have a way to set this attributes.
    
    It took me a while to find a workaround (thanks to Apple's great
    documentation), where we switch text drawing to fill and stroke,
    and after that we can modify the stroke by changing the line
    width.
    
    Change-Id: I594fcb9c796a9c04ea8234a9938ca2f719706199
    Reviewed-on: https://gerrit.libreoffice.org/71012
    Tested-by: Jenkins
    Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    eb560651