Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions gnu/java/awt/font/OpenTypeFontPeer.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ public OpenTypeFontPeer(String name, Map atts)

public boolean canDisplay(Font font, int c)
{
// FIXME: Implement this.
throw new UnsupportedOperationException("Not yet implemented");
return fontDelegate.getGlyphIndex(c) != fontDelegate.getMissingGlyphCode();
}

public int canDisplayUpTo(Font font, CharacterIterator i, int start, int limit)
{
// FIXME: Implement this.
throw new UnsupportedOperationException("Not yet implemented");
for (char c = i.setIndex(start); i.getIndex() < limit; c = i.next())
if (! canDisplay(font, c))
return i.getIndex();
return -1;
}

public String getSubFamilyName(Font font, Locale locale)
Expand Down
Loading