[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

FontDescription

inherits from Object

Object <- FontDescription



Operations

Get list of all operations

CopyFontDescription
FontDescriptionForTextStyle
MatchesInstance
ScaledSize
TextStyleForFontDescription


Attributes

Get list of all attributes

FontIdentifier
FontName
FontSize
IsBold
IsItalic
IsUnderlined


Fields

Field Type
FontDescription: fontIdentifier: Buffer
fontName: Text
fontSize: Unsigned
isBold: Boolean
isItalic: Boolean
isUnderlined: Boolean


Instance template

instance FontDescription tag;
 fontIdentifier: nilObject;
       fontName: nilObject;
       fontSize: 0;
         isBold: false;
       isItalic: false;
   isUnderlined: false;
end instance;

Class definition

Define Class FontDescription;
    inherits from Object;
    shares members;

    field fontIdentifier:       Buffer, getter, setter; 
        // Panos #, or something
    field fontName:             Text, getter;
    field fontSize:             Unsigned, getter, setter;
    field isBold:               Boolean, getter, setter;
    field isItalic:             Boolean, getter, setter;
    field isUnderlined:         Boolean, getter, setter;
    
    intrinsic FontDescriptionForTextStyle(textStyle: TextStyle; nearThis: Object): FontDescription;
    intrinsic TextStyleForFontDescription(fontDescription: FontDescription; nearThis: Object): TextStyle;
    operation CopyFontDescription(nearThis: Object): FontDescription;
    overrides MatchesInstance;
    operation ScaledSize(pixelSize: Unsigned): Micron;
    
    attribute FontIdentifier: Buffer;
    attribute FontName: Text;
    attribute FontSize: Unsigned;
    attribute IsBold: Boolean;
    attribute IsItalic: Boolean;
    attribute IsUnderlined: Boolean;
end class;