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

6
LINES

< > BotCompany Repo | #1006018 // hGoogleFont - <style> tag that imports a Google font

JavaX fragment (include)

// font may include weights, like "Nunito Sans:400,900"
static S hGoogleFont(S font) {
  ret "<style>\n"
    + "@import url('https://fonts.googleapis.com/css?family=" + urlencode(font) + "');\n"
    + "</style>\n";
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006018
Snippet name: hGoogleFont - <style> tag that imports a Google font
Eternal ID of this version: #1006018/1
Text MD5: d55f8b8d72bd56cc991fd8793f6da4db
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-14 13:59:11
Source code size: 221 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 574 / 598
Referenced in: [show references]