Revision: 12407
http://sourceforge.net/p/foray/code/12407
Author: victormote
Date: 2022-01-16 13:38:11 +0000 (Sun, 16 Jan 2022)
Log Message:
-----------
Correct logic to match new signal that the glyph name was not found.
Modified Paths:
--------------
trunk/foray/foray-font/src/main/java/org/foray/font/format/type1/Type1MetricsParserAfm.java
Modified: trunk/foray/foray-font/src/main/java/org/foray/font/format/type1/Type1MetricsParserAfm.java
===================================================================
--- trunk/foray/foray-font/src/main/java/org/foray/font/format/type1/Type1MetricsParserAfm.java 2022-01-15 20:16:52 UTC (rev 12406)
+++ trunk/foray/foray-font/src/main/java/org/foray/font/format/type1/Type1MetricsParserAfm.java 2022-01-16 13:38:11 UTC (rev 12407)
@@ -1486,7 +1486,7 @@
private int getCodePointForGlyphName(final PsServer psServer, final String glyphName) {
GlyphList gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.AGL);
int theChar = gl.mapGlyphNameToCodePoint(glyphName);
- if (theChar == Character.MAX_VALUE) {
+ if (theChar < 0) {
gl = psServer.getPredefinedGlyphList(GlyphList.Predefined.ZAPF_DINGBATS);
theChar = gl.mapGlyphNameToCodePoint(glyphName);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|