Serve fonts for local PolyGerrit development

Packs fonts the same way bower_components are packed, with a 'fonts'
folder inside fonts.zip.

Also removes deprecated OpenSans fonts from build files.

Bug: Issue 4893
Change-Id: I7fc11d6e689c7d5b1d68d09e94ee7aaba91ded9b
This commit is contained in:
Viktar Donich
2016-11-07 11:49:52 -08:00
parent 20988e1e40
commit 5389538038
9 changed files with 6 additions and 38 deletions

View File

@@ -87,6 +87,8 @@ public abstract class ResourceServlet extends HttpServlet {
.put("tif", "image/tiff")
.put("tiff", "image/tiff")
.put("txt", "text/plain")
.put("woff", "font/woff")
.put("woff2", "font/woff2")
.build();
protected static String contentType(String name) {