Skip to content

Commit

Permalink
Font alias names can be used case-insensitive (eclipse-birt#1576) (ec…
Browse files Browse the repository at this point in the history
  • Loading branch information
speckyspooky authored Mar 4, 2024
1 parent b1d4f7d commit 03dc43e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ public void testFontMapWhenAllFontsNotDefined()
// alias: defined; composite-font: not; character: defined by the
// logical font.
assertTrue(isMappedTo('1', "alias2", "Helvetica"));

// The Mapping should be case-insensitive
assertTrue(isMappedTo('1', "Alias2", "Helvetica"));
// alias: not; composite-font: defined; block: defined; character:
// defined by the block font.
assertTrue(isMappedTo('1', "Symbol", "Courier"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public String getDefaultPhysicalFont(char c) {
}

public String getAliasedFont(String fontAlias) {
String alias = (String) fontAliases.get(fontAlias);
String alias = (String) fontAliases.get(fontAlias.toLowerCase());
if (alias != null) {
return alias;
}
Expand Down

0 comments on commit 03dc43e

Please sign in to comment.