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

10
LINES

< > BotCompany Repo | #1006839 // renderSourceCode_1 - render source code in a certain font

JavaX fragment (include)

static S renderSourceCode_1_font = /*#1006840*/#1006844;
static int renderSourceCode_1_size = 18;

static BufferedImage renderSourceCode_1(S text) {
  ret renderText_multiLine(renderSourceCode_1_font, renderSourceCode_1_size, text);
}

static int renderSourceCode_1_lineHeight() {
  ret fontMetrics(renderSourceCode_1_font, renderSourceCode_1_size).getHeight();
}

Author comment

Began life as a copy of #1004566

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006839
Snippet name: renderSourceCode_1 - render source code in a certain font
Eternal ID of this version: #1006839/9
Text MD5: a1b15946c178acbf0be8c6a29113cd93
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-07 02:02:36
Source code size: 374 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 519 / 542
Version history: 8 change(s)
Referenced in: [show references]