Libraryless. Click here for Pure Java version (1992L/13K).
1 | // TODO: is display=swap always correct? |
2 | sS hIncludeGoogleFont(S fontFamily) {
|
3 | ret htag link("", href := "https://fonts.googleapis.com/css?family=" + urlencode(fontFamily) + "&display=swap", rel := "stylesheet");
|
4 | } |
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: | 419 / 541 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |