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

7
LINES

< > BotCompany Repo | #1009047 // swingDemoFont - demo a font in a Swing window

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (17055L/104K).

static ImageSurface swingDemoFont(Font font) {
  ret showImage("Font Demo: " + font, renderText(font, lowerAndUpperCaseAlphabet()));
}

static ImageSurface swingDemoFont(S fontSnippetID) {
  ret showImage("Font Demo: " + fontSnippetID, renderText(loadFont_cached(fontSnippetID), lowerAndUpperCaseAlphabet()));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1009047
Snippet name: swingDemoFont - demo a font in a Swing window
Eternal ID of this version: #1009047/4
Text MD5: f60025d306e0df0a2e1d73e6402f734d
Transpilation MD5: f5e5aef7ac8526ec623f433cbc91a101
Author: stefan
Category: javax / desktop
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-20 19:46:40
Source code size: 317 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 535 / 610
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)