FontDescription.st
changeset 6825 4fcdfee4604c
parent 6824 915782c7f935
child 6956 96f7888403e5
equal deleted inserted replaced
6824:915782c7f935 6825:4fcdfee4604c
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  COPYRIGHT (c) 1994 by Claus Gittinger
     4  COPYRIGHT (c) 1994 by Claus Gittinger
     3 	      All Rights Reserved
     5 	      All Rights Reserved
     4 
     6 
     5  This software is furnished under a license and may be used
     7  This software is furnished under a license and may be used
    47 
    49 
    48     [Instance variables:]
    50     [Instance variables:]
    49         family          <String>        the fonts family ('courier', 'helvetica' etc)
    51         family          <String>        the fonts family ('courier', 'helvetica' etc)
    50         face            <String>        the fonts face ('bold', 'medium' etc)
    52         face            <String>        the fonts face ('bold', 'medium' etc)
    51         style           <String>        the fonts style ('roman', 'italic', 'oblique')
    53         style           <String>        the fonts style ('roman', 'italic', 'oblique')
    52         size            <String>        the fonts size (not in pixels) 
    54         size            <String>        the fonts size (by default, in points, not in pixels; but see sizeUnit) 
    53         encoding        <Symbol>        the fonts encoding (usually #iso8859-1)
    55         encoding        <Symbol>        the fonts encoding (usually #iso8859-1)
    54 
    56 
    55         manufacturer    <nil|String|Array>
    57         manufacturer    <nil|String|Array>
    56                                         the fonts origin - if known
    58                                         the fonts origin - if known
    57         name            <nil|String|Array>
    59         name            <nil|String|Array>
    58                                         the platform specific name
    60                                         the platform specific name
    59 
    61 
    60         flags           <SmallInteger>  holds serif/italic etc. as flag bits
    62         flags           <SmallInteger>  holds serif/italic etc. as flag bits
    61         masks           <SmallInteger>  currently dummy; to allow ST-80 compatible subclassing
    63         masks           <SmallInteger>  currently dummy; to allow ST-80 compatible subclassing
    62         pixelSize       <SmallInteger>  currently dummy; to allow ST-80 compatible subclassing
    64         pixelSize       <SmallInteger>  currently dummy; to allow ST-80 compatible subclassing
       
    65         sizeUnit        <Symbol>        #px or #pt; defines what size is measuring
       
    66         weight          <SmallInteger>  for real fonts, which support it
       
    67         slant           <SmallInteger>  for real fonts, which support it
    63 
    68 
    64     [class variables:]
    69     [class variables:]
    65         BoldnessMask                    currently dummy; to allow ST-80 compatible subclassing
    70         BoldnessMask                    currently dummy; to allow ST-80 compatible subclassing
    66         FixedFlag                       currently dummy; to allow ST-80 compatible subclassing
    71         FixedFlag                       currently dummy; to allow ST-80 compatible subclassing
    67         ItalicFlag                      currently dummy; to allow ST-80 compatible subclassing
    72         ItalicFlag                      currently dummy; to allow ST-80 compatible subclassing
  1740 ! !
  1745 ! !
  1741 
  1746 
  1742 !FontDescription class methodsFor:'documentation'!
  1747 !FontDescription class methodsFor:'documentation'!
  1743 
  1748 
  1744 version
  1749 version
  1745     ^ '$Header: /cvs/stx/stx/libview/FontDescription.st,v 1.99 2015-03-13 12:27:03 cg Exp $'
  1750     ^ '$Header: /cvs/stx/stx/libview/FontDescription.st,v 1.100 2015-03-13 12:29:10 cg Exp $'
  1746 !
  1751 !
  1747 
  1752 
  1748 version_CVS
  1753 version_CVS
  1749     ^ '$Header: /cvs/stx/stx/libview/FontDescription.st,v 1.99 2015-03-13 12:27:03 cg Exp $'
  1754     ^ '$Header: /cvs/stx/stx/libview/FontDescription.st,v 1.100 2015-03-13 12:29:10 cg Exp $'
  1750 ! !
  1755 ! !
  1751 
  1756 
  1752 
  1757 
  1753 FontDescription initialize!
  1758 FontDescription initialize!