com.projetloki.genesis.FontFormat Maven / Gradle / Ivy
The newest version!
package com.projetloki.genesis;
/**
* Specifies the format of a source in a font-face rule.
* Though specifying the format is not required, it is highly recommended to
* allow browsers not to download font files (which can be very big) in formats
* they can't handle.
*
*
* Note: Because there are no defined MIME types for TrueType, OpenType, and Web
* Open File Format (WOFF) fonts, the MIME type of the file specified is not
* considered.
*
* @see MDN
*
* @author Clément Roux
*/
public enum FontFormat {
WOFF("woff"),
TRUETYPE("truetype"),
OPENTYPE("opentype"),
EMBEDDED_OPENTYPE("embedded-opentype"),
SVG("svg");
final String string;
private FontFormat(String string) {
this.string = string;
}
@Override public String toString() {
return string;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy