Package RASCAL.Font

DescriptionEvent definitions and subprograms for handling outline fonts.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
RASCAL.OS
 
Use clauses
RASCAL.OS
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Font_Handle_Typenew integer
Message_FontChanged_Pointeraccess Message_FontChanged
   
Message_FontChanged record
This message is bradcasted when the desktop font has changed.
Component Type Default
HeaderMessage_Event_Header
   
AMEL_Message_Fontchanged abstract tagged record
inheritance from Message_EventListener (Message_Event_FontChanged)
Component Type Default
EventMessage_FontChanged_Pointer
  
Pragmas
Convention(C, Message_FontChanged)
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Millipoints_To_OS procedure
Converts the coordinates from millipoints to OS units.
Parameter name Type Mode Default
XIntegerin out
YIntegerin out
  
OS_To_Millipoints procedure
Converts the coordinates from OS units to millipoints.
Parameter name Type Mode Default
XIntegerin out
YIntegerin out
  
Get_StringWidth procedure
Calculates how wide a string would be under the given limits.
Parameter name Type Mode Default
TextStringin
WidthIntegerin out
HeightIntegerin out
LengthIntegerin out
  
Truncate function
ReturnString
Truncate the string to the given limits.
Parameter name Type Mode Default
TextStringin
WidthIntegerin
HeightIntegerin
LengthIntegerin
Rightbooleanin
  
Enumerate_Characters procedure
This call can be used to determine which characters are present in a font, and which glyphs in the underlying font file characters map to.
This call works only by looking at encoding files -
it cannot guarantee that a given character is actually defined in a font file, but it can say which characters definitely aren't, by returning with R2 set to -1.
Parameter name Type Mode Default
FontIntegerin
CharIntegerin out
CodeIntegerout