|
|
@ -20,7 +20,7 @@ import com.porcupine.coord.Coord; |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Remade universal font manager for Sector. |
|
|
|
* Remade universal font manager for Sector. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author MightyPork |
|
|
|
* @author Ondřej Hruška (MightyPork) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class FontManager { |
|
|
|
public class FontManager { |
|
|
|
|
|
|
|
|
|
|
@ -29,7 +29,7 @@ public class FontManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Glyph tables. |
|
|
|
* Glyph tables. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author MightyPork |
|
|
|
* @author Ondřej Hruška (MightyPork) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static class Glyphs { |
|
|
|
public static class Glyphs { |
|
|
|
//@formatter:off
|
|
|
|
//@formatter:off
|
|
|
@ -82,7 +82,7 @@ public class FontManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Font style |
|
|
|
* Font style |
|
|
|
* |
|
|
|
* |
|
|
|
* @author MightyPork |
|
|
|
* @author Ondřej Hruška (MightyPork) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static enum Style { |
|
|
|
public static enum Style { |
|
|
|
/** Normal */ |
|
|
|
/** Normal */ |
|
|
@ -118,7 +118,7 @@ public class FontManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Preloaded font identifier [name, size, style] |
|
|
|
* Preloaded font identifier [name, size, style] |
|
|
|
* |
|
|
|
* |
|
|
|
* @author MightyPork |
|
|
|
* @author Ondřej Hruška (MightyPork) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static class FontId { |
|
|
|
public static class FontId { |
|
|
|
/** font size (pt) */ |
|
|
|
/** font size (pt) */ |
|
|
@ -201,7 +201,7 @@ public class FontManager { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Group of styles of one font. |
|
|
|
* Group of styles of one font. |
|
|
|
* |
|
|
|
* |
|
|
|
* @author MightyPork |
|
|
|
* @author Ondřej Hruška (MightyPork) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static class FontFamily extends HashMap<Style, String> {} |
|
|
|
public static class FontFamily extends HashMap<Style, String> {} |
|
|
|
|
|
|
|
|
|
|
|