Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8272878: JEP 381 cleanup: Remove unused Solaris code in sun.font.TrueTypeGlyphMapper #5232

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -30,15 +30,6 @@

public class TrueTypeGlyphMapper extends CharToGlyphMapper {

static final char REVERSE_SOLIDUS = 0x005c; // the backslash char.
static final char JA_YEN = 0x00a5;

/* if running on Solaris and default Locale is ja_JP then
* we map need to remap reverse solidus (backslash) to Yen as
* apparently expected there.
*/
static final boolean isJAlocale = Locale.JAPAN.equals(Locale.getDefault());

TrueTypeFont font;
CMap cmap;
int numGlyphs;
@@ -125,14 +116,6 @@ private void handleBadCMAP() {
cmap = CMap.theNullCmap;
}

private char remapJAChar(char unicode) {
return (unicode == REVERSE_SOLIDUS) ? JA_YEN : unicode;
}

private int remapJAIntChar(int unicode) {
return (unicode == REVERSE_SOLIDUS) ? JA_YEN : unicode;
}

public int charToGlyph(char unicode) {
int glyph = getGlyphFromCMAP(unicode);
return glyph;