1 18 package org.apache.batik.gvt.font; 19 20 import java.awt.font.FontRenderContext ; 21 import java.text.CharacterIterator ; 22 23 29 public interface GVTFont { 30 31 34 public boolean canDisplay(char c); 35 36 40 public int canDisplayUpTo(char[] text, int start, int limit); 41 42 46 public int canDisplayUpTo(CharacterIterator iter, int start, int limit); 47 48 51 public int canDisplayUpTo(String str); 52 53 57 public GVTGlyphVector createGlyphVector(FontRenderContext frc, 58 char[] chars); 59 63 public GVTGlyphVector createGlyphVector(FontRenderContext frc, 64 CharacterIterator ci); 65 69 public GVTGlyphVector createGlyphVector(FontRenderContext frc, 70 int[] glyphCodes, 71 CharacterIterator ci); 72 76 public GVTGlyphVector createGlyphVector(FontRenderContext frc, 77 String str); 78 79 83 public GVTFont deriveFont(float size); 84 85 88 public GVTLineMetrics getLineMetrics(char[] chars, int beginIndex, 89 int limit, FontRenderContext frc); 90 91 94 public GVTLineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, 95 int limit, FontRenderContext frc); 96 97 101 public GVTLineMetrics getLineMetrics(String str, FontRenderContext frc); 102 103 106 public GVTLineMetrics getLineMetrics(String str, int beginIndex, int limit, 107 FontRenderContext frc); 108 109 112 public float getSize(); 113 114 117 public float getVKern(int glyphCode1, int glyphCode2); 118 119 122 public float getHKern(int glyphCode1, int glyphCode2); 123 124 public String toString(); 125 } 126 | Popular Tags |