Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/graphics/Font.d

    r216 r238  
    1212 *******************************************************************************/ 
    1313module dwt.graphics.Font; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517 
     
    137139 * </ul> 
    138140 */ 
    139 public this(Device device, char[] name, int height, int style) { 
     141public this(Device device, String name, int height, int style) { 
    140142    if (device is null) device = Device.getDevice(); 
    141143    if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
     
    144146} 
    145147 
    146 /*public*/ this(Device device, char[] name, float height, int style) { 
     148/*public*/ this(Device device, String name, float height, int style) { 
    147149    if (device is null) device = Device.getDevice(); 
    148150    if (device is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
     
    200202 
    201203    auto family = OS.pango_font_description_get_family(handle); 
    202     char[] name = fromStringz( family ); 
     204    String name = fromStringz( family ); 
    203205    float height = cast(float)OS.pango_font_description_get_size(handle) / OS.PANGO_SCALE; 
    204206    int pangoStyle = OS.pango_font_description_get_style(handle); 
     
    253255} 
    254256 
    255 void init_(Device device, char[] name, float height, int style, char[] fontString) { 
     257void init_(Device device, String name, float height, int style, String fontString) { 
    256258    if (name is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); 
    257259    if (height < 0) DWT.error(DWT.ERROR_INVALID_ARGUMENT); 
     
    297299 * @return a string representation of the receiver 
    298300 */ 
    299 public char[] toString () { 
     301public String toString () { 
    300302    if (isDisposed()) return "Font {*DISPOSED*}"; 
    301303    return Format( "Font {{{}}", handle );