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