Home | Trees | Indices | Help |
|
---|
|
object --+ | basestring --+ | str --+ | object --+ | | | internals._Objectype --+ | | | baseTypes._Type0 --+ | Str --+ | object --+ | | | internals._Objectype --+ | | | baseTypes._Type0 --+ | StrAttd
Python str
Type, wrapping (immutable) ObjC
NSAttributedString
.
Instance Methods | |
Inherited from Inherited from Inherited from |
Static Methods | |||
a new object with type S, a subtype of T |
|
Properties | |
attachment Get the baselineOffset ( str ).
|
|
backgroundColor Get the background fill color ( Color ).
|
|
baselineOffset Get the baselineOffset ( int or float ).
|
|
font Get the font ( Font ).
|
|
foregroundColor Get the text color ( Color ).
|
|
kern Get the kerning ( int or float ).
|
|
ligature Get the underline style ( int ).
|
|
link Get the underline style ( NS... ).
|
|
NS Get the ObjC instance ( NSAttributedString ).
|
|
paragraphStyle Get the paragraph style ( ... ).
|
|
superScript Get the underline style ( int or float ).
|
|
underlineStyle Get the underline style ( UnderlineStyle ).
|
|
Inherited from Inherited from Inherited from |
Method Details |
New Str from
|
Property Details |
attachmentGet the baselineOffset (
|
backgroundColorGet the background fill color (
|
baselineOffsetGet the baselineOffset (
Note: The baseline offset attribute is a literal distance, in pixels, by which the characters should be shifted above the baseline (for positive offsets) or below (for negative offsets). |
fontGet the font (
|
foregroundColorGet the text color (
|
kernGet the kerning (
Note: The kerning attribute indicates how much the following character should be shifted from its default offset as defined by the current character’s font; a positive kern indicates a shift farther along and a negative kern indicates a shift closer to the current character. |
ligatureGet the underline style (
Note: The ligature attribute determines what kinds of ligatures should be used when displaying the string: 0 indicates that only ligatures essential for proper rendering of text should be used, 1 indicates that standard ligatures should be used, and 2 indicates that all available ligatures should be used. Which ligatures are standard depends on the script and possibly the font. Arabic text, for example, requires ligatures for many character sequences, but has a rich set of additional ligatures that combine characters. English text has no essential ligatures, and typically has only two standard ligatures, those for “fi” and “fl”—all others being considered more advanced or fancy. |
linkGet the underline style (
Note: The link attribute specifies an arbitrary object that is passed to the NSTextView method clickedOnLink:atIndex: when the user clicks in the text range associated with the NSLinkAttributeName attribute. The text view’s delegate object can implement textView:clickedOnLink:atIndex: or textView:clickedOnLink: to process the link object. Otherwise, the default implementation checks whether the link object is an NSURL object and, if so, opens it in the URL’s default application. |
NSGet the ObjC instance (
|
paragraphStyleGet the paragraph style (
|
superScriptGet the underline style (
Note: The superscript attribute indicates an abstract level for both super- and subscripts. The user of the attributed string can interpret this as desired, adjusting the baseline by the same or a different amount for each level, changing the font size, or both. |
underlineStyleGet the underline style (
Note: The underline attribute has only two values defined, NSNoUnderlineStyle and NSSingleUnderlineStyle, but these can be combined with NSUnderlineByWordMask and NSUnderlineStrikethroughMask to extend their behavior. By bitwise-ORing these values in different combinations, you can specify no underline, a single underline, a single strikethrough, both an underline and a strikethrough, and whether the line is drawn for whitespace or not. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 8 11:26:16 2025 | http://epydoc.sourceforge.net |