build/res/fonts/vera: .download_vera-1.10
mkdir -p build/res/fonts/vera
cd build/res/fonts/vera; ln -s ../../../../upstream/vera-1.10/ttf-bitstream-vera-1.10/Vera.ttf
+ cd build/res/fonts/vera; ln -s ../../../../upstream/vera-1.10/ttf-bitstream-vera-1.10/VeraBd.ttf
build/res/builtin.jar: $(builtin_src:src/%=build/res/%) build/res/freetype.mips build/res/libmspack.mips build/res/fonts/vera
@echo -e "\n\033[1mzipping res/* -> .jar: builtin.jar\033[0m"
cd build/res; $(jar) cf builtin.jar $(^:build/res/%=%)
if (g != null) {
int top = y + g.max_ascent - g.baseline + g.max_descent;
if (g.p != null)
- buf.drawPictureAlphaOnly(g.p, x, top + 4,
+ buf.drawPictureAlphaOnly(g.p, x, top,
clipx, clipy, clipx + clipw, clipy + cliph, textcolor);
x += g.advance;
} else {
} });
} else {
textwidth += g.advance;
- textheight = g.max_ascent;
+ textheight = max(textheight, g.max_ascent + g.max_descent);
}
}
} catch (Exception e) {
else Freetype.renderGlyphs(res, pointsize, (int)c, (int)c, glyphCache);
if ((Glyph)glyphCache.get(res, new Integer((((int)c) << 16) | pointsize)) == null)
throw new JS.Exn("error rendering glyph " + c + "; glyph is null");
+ Log.log(Freetype.class, " done rendering glyphs for font " + res.getDescriptiveName());
}
ThreadMessage.resumeThread();
}
public static String originHost = null;
public static String origin = null;
- public static final Res builtin = new Res.Builtin();
+ public static final Res builtin = new Res.Zip(new Res.Builtin());
public static Picture scarImage = null;
public static void printUsage() {