import java.awt.font.*; import java.awt.geom.*; static TextLayout newTextLayout(S text, Font font, Graphics g) { ret new TextLayout(text, font, ((Graphics2D) g).getFontRenderContext()); } static TextLayout newTextLayout(S text, Font font, Component c) { ret newTextLayout(text, font, c.getGraphics()); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023067 |
| Snippet name: | newTextLayout |
| Eternal ID of this version: | #1023067/3 |
| Text MD5: | f7841c72eb8223f83fc5e449cbeda525 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-04-30 20:30:33 |
| Source code size: | 318 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 479 / 516 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |