package org.apache.fop.fonts;
+import java.util.Locale;
+
/**
* This enumerates the embedding mode of fonts; full; subset; auto (auto defaults to full for
* Type 1 fonts and subset for TrueType fonts.
* @return the name of this embedding mode in lower case.
*/
public String getName() {
- return this.toString().toLowerCase();
+ return this.toString().toLowerCase(Locale.ENGLISH);
}
/**
import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.Locale;
import java.util.Map;
import java.util.Set;
char ch16 = (char)ch; //TODO Handle Unicode characters beyond 16bit
String glyphName = Glyphs.charToGlyphName(ch16);
if ("".equals(glyphName)) {
- glyphName = "u" + Integer.toHexString(ch).toUpperCase();
+ glyphName = "u" + Integer.toHexString(ch).toUpperCase(Locale.ENGLISH);
}
writeGlyphDefs(gen, glyphName, glyphIndex);