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

3
LINES

< > BotCompany Repo | #1019641 // scaleFont

JavaX fragment (include)

1  
static Font scaleFont(Font font, double scale) {
2  
  ret font == null ? null : font.deriveFont((float) (scale*font.getSize2D()));
3  
}

Author comment

Began life as a copy of #1014789

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019641
Snippet name: scaleFont
Eternal ID of this version: #1019641/1
Text MD5: 381878d0fd2da00fad87cbd36b403d64
Author: stefan
Category: javax / fonts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-15 16:34:46
Source code size: 131 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 326 / 351
Referenced in: [show references]