Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

Commit bc6b4aa

Browse files
committed
Fixed glyph substitution names as produced by Google Extractor
1 parent a730902 commit bc6b4aa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/mitchtalmadge/emojitools/operations/extraction/extractors/GoogleExtractionWorker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ protected Boolean doWork() throws Exception {
181181
if (glyphSubList != null) {
182182
for (Ligature ligature : glyphSubList) {
183183
if (ligature.getLigatureGlyphName().equals(name)) {
184-
String fileName = cmap.get(ligature.getSetGlyphName());
184+
String fileName = "uni" + cmap.get(ligature.getSetGlyphName());
185185
for (String component : ligature.getComponents()) {
186-
fileName += "_" + cmap.get(component);
186+
fileName += "_" + "uni" + cmap.get(component);
187187
}
188188

189-
File outputFile = new File(extractionDirectory, "uni" + fileName + ".png");
189+
File outputFile = new File(extractionDirectory, fileName + ".png");
190190

191191
appendMessageToDialog("Extracting Emoji: " + outputFile.getName());
192192
updateProgress(i, cbdtBitmapFormat17ElementList.getLength());

0 commit comments

Comments
 (0)