Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1003904 // typeWriterFont (e.g. for text areas)

JavaX fragment (include)

static Font typeWriterFont() {
  ret typeWriterFont(iround(14*getSwingFontScale()));
}
  
static Font typeWriterFont(int size) {
  ret new Font(localCourierFontName(), Font.PLAIN, size);
}

static <A extends JComponent> A typeWriterFont(A c) {
  ret withTypeWriterFont(c);
}

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: 550 / 554
Version history: 4 change(s)
Referenced in: [show references]