mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 05:39:29 +02:00
parent
df1425b1ec
commit
8bce6066ca
@ -915,11 +915,16 @@ begin
|
||||
FTextStorage.addAttribute_value_range(NSFontAttributeName, FFont.Font, Range);
|
||||
// aply font attributes which are not in NSFont
|
||||
if cfs_Underline in FFont.Style then
|
||||
FTextStorage.addAttribute_value_range(NSUnderlineStyleAttributeName, NSNumber.numberWithInteger(UnderlineStyle), Range);
|
||||
FTextStorage.addAttribute_value_range(NSUnderlineStyleAttributeName, NSNumber.numberWithInteger(UnderlineStyle), Range)
|
||||
else
|
||||
FTextStorage.removeAttribute_range(NSUnderlineStyleAttributeName, Range);
|
||||
|
||||
if cfs_Strikeout in FFont.Style then
|
||||
FTextStorage.addAttribute_value_range(NSStrikethroughStyleAttributeName, NSNumber.numberWithInteger(UnderlineStyle), Range)
|
||||
else
|
||||
FTextStorage.removeAttribute_range(NSStrikethroughStyleAttributeName, Range);
|
||||
|
||||
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user