From 69dd86def959817b0a006d85f4fcacaecbca9fe8 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 20 Mar 2017 13:16:49 +0100 Subject: [PATCH] Support otf fonts --- OsmAnd-java/src/net/osmand/NativeLibrary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/NativeLibrary.java b/OsmAnd-java/src/net/osmand/NativeLibrary.java index b44063d402..81ce6cab00 100644 --- a/OsmAnd-java/src/net/osmand/NativeLibrary.java +++ b/OsmAnd-java/src/net/osmand/NativeLibrary.java @@ -333,7 +333,7 @@ public class NativeLibrary { }); for(File f : lst) { final String name = f.getName(); - if(!name.endsWith(".ttf") || !name.endsWith(".otf")) { + if(!name.endsWith(".ttf") && !name.endsWith(".otf")) { continue; } try {