1 | static Font typeWriterFont() { |
2 | ret typeWriterFont(iround(14*getSwingFontScale())); |
3 | } |
4 | |
5 | static Font typeWriterFont(int size) { |
6 | ret new Font(localCourierFontName(), Font.PLAIN, size); |
7 | } |
8 | |
9 | static <A extends JComponent> A typeWriterFont(A c) { |
10 | ret withTypeWriterFont(c); |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003904 |
Snippet name: | typeWriterFont (e.g. for text areas) |
Eternal ID of this version: | #1003904/5 |
Text MD5: | c509e3ccaf456ee035853edb88d6165b |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-07-19 21:18:45 |
Source code size: | 284 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 620 / 624 |
Version history: | 4 change(s) |
Referenced in: | [show references] |