comparison dwt/graphics/FontData.d @ 154:535243e6d16a

Fixes to make dwt compile with ldc
author Jacob Carlborg <doob@me.com>
date Sat, 13 Jun 2009 00:25:05 +0200
parents d8635bb48c7c
children
comparison
equal deleted inserted replaced
153:8433dabeb15e 154:535243e6d16a
439 * 439 *
440 * @see FontData 440 * @see FontData
441 */ 441 */
442 public String toString() { 442 public String toString() {
443 StringBuffer buffer = new StringBuffer(); 443 StringBuffer buffer = new StringBuffer();
444 buffer.append("1|"); 444 buffer.format("{}", "1|");
445 buffer.append(getName()); 445 buffer.format("{}", getName());
446 buffer.append("|"); 446 buffer.format("{}", "|");
447 buffer.append(getHeightF()); 447 buffer.format("{}", getHeightF());
448 buffer.append("|"); 448 buffer.format("{}", "|");
449 buffer.append(getStyle()); 449 buffer.format("{}", getStyle());
450 buffer.append("|"); 450 buffer.format("{}", "|");
451 buffer.append("COCOA|1|"); 451 buffer.format("{}", "COCOA|1|");
452 if (nsName !is null) buffer.append(nsName); 452 if (nsName !is null) buffer.format("{}", nsName);
453 return buffer.toString(); 453 return buffer.toString();
454 } 454 }
455 455
456 } 456 }