Warning: session_start(): open(/var/lib/php/sessions/sess_ofk56k8saktsal9fjbkcdm810t, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static JWindow screenTextOverlay_withOutline_multiLine_centered(fS text, O... _) {
ret swing(func -> JWindow {
new JWindow w;
optPar Color outlineColor = Color.black;
Font font = cast optPar font(_);
if (font == null)
font = w.getFont().deriveFont(boolPar bold(_, true) ? Font.BOLD : Font.PLAIN, optPar fontSize(_, 80));
Pair shapeAndSize = textLayoutToOutlineAndSize_multiLine_centered(text, font, w);
float outlineWidth = optPar outlineWidth(_, 4.0f);
JComponent c = dynamicallyPaintedComponent(voidfunc(Graphics2D g, int w, int h) {
fillRect(g, 0, 0, w, h, optPar color(_, Color.WHITE));
g.setColor(outlineColor);
g.setStroke(new BasicStroke(outlineWidth);
antiAliasOn(g);
g.draw(shapeAndSize.a);
});
w.add(c);
centerWindow(w, iceil(shapeAndSize.b.w+optPar magicXMargin(_, 10)),
iceil(shapeAndSize.b.h+optPar magicYMargin(_, 10)));
w.setShape(shapeAndSize.a);
w.setAlwaysOnTop(true);
w.setVisible(true);
ret w;
});
}