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

17
LINES

< > BotCompany Repo | #1015995 - Font Demo [Dyn Module, OK]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 108K of libraries. Click here for Pure Java version (16142L/114K).

!7

sclass FontDemo extends DynSCP {
  S fontID;
  int fontSize = 100;
  
  transient S lastIDTried;
  
  void update {
    S s = dm_getInterestingString();
    if (isSnippetID(s) && setField(lastIDTried := s)) pcall {
      JScrollPane sp = scrollableImageSurface(renderText(s, fontSize, charRange('A', 'Z') + charRange('a', 'z') + charRange('0', '9')));
      scp.setComponent(jSection(snippetWithTitle(s), sp));
      setField(fontID := s);
    }
  }
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1015995
Snippet name: Font Demo [Dyn Module, OK]
Eternal ID of this version: #1015995/8
Text MD5: 8017d9f5da76f9ea182dbdcc25b6628f
Transpilation MD5: ec5d1386ca0865e6647c5ec20932fd6b
Author: stefan
Category: javax / gui
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-08 18:38:44
Source code size: 471 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 187 / 285
Version history: 7 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1015995 & http://1015995.tinybrain.de