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

4
LINES

< > BotCompany Repo | #1024236 // hIncludeGoogleFont

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

Libraryless. Click here for Pure Java version (1992L/13K).

// TODO: is display=swap always correct?
sS hIncludeGoogleFont(S fontFamily) {
  ret htag link("", href := "https://fonts.googleapis.com/css?family=" + urlencode(fontFamily) + "&display=swap", rel := "stylesheet");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024236
Snippet name: hIncludeGoogleFont
Eternal ID of this version: #1024236/2
Text MD5: 253ec9aafb4272324bc30b68fd8ef653
Transpilation MD5: bb9e7d13ae35c707b8a51beb8bb57110
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-28 16:07:15
Source code size: 219 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 192 / 278
Version history: 1 change(s)
Referenced in: [show references]