Warning: session_start(): open(/var/lib/php/sessions/sess_jpetki115kdardsf0bju0rqvor, 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
import java.awt.font.*;
import java.awt.geom.*;
static JWindow screenTextOverlay_withOutline(fS text, O... _) {
ret swing(func -> JWindow {
new JWindow w;
w.setAlwaysOnTop(true);
w.setVisible(true);
Font font = cast optPar font(_);
if (font == null)
font = w.getFont().deriveFont(boolPar bold(_) ? Font.BOLD : Font.PLAIN, optPar fontSize(_, 80));
TextLayout tl = new TextLayout(text, font,
((Graphics2D) w.getGraphics()).getFontRenderContext());
Rectangle2D r = tl.getBounds();
new AffineTransform tx;
tx.translate(0, r.getHeight());
Shape outline = tl.getOutline(tx);
JComponent c = dynamicallyPaintedComponent(voidfunc(Graphics2D g, int w, int h) {
fillRect(g, 0, 0, w, h, optPar color(_, Color.WHITE));
g.setColor(Color.black);
g.setStroke(new BasicStroke(optPar outlineWidth(_, 4.0f));
g.draw(outline);
});
w.add(c);
centerWindow(w, iceil(r.getWidth()), iceil(r.getHeight()));
w.setShape(outline);
ret w;
});
}