Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Google fonts

by Loops (Curate)
on Oct 30, 2014 at 08:16 UTC ( [id://1105587]=monkdiscuss: print w/replies, xml ) Need Help??

Google has a large collection of free fonts that are hosted for use on web sites. You can use them in your own personal CSS for this site if that's your kind of thing. Here is example CSS that you could paste into your Display Settings in the "On-Site CSS Markup" field. I think it looks good with the Dark theme selected, but it should work with any.

@import url('http://fonts.googleapis.com/css?family=PT+Mono'); @import url(http://fonts.googleapis.com/css?family=Merriweather:400,40 +0italic,700); * { font-family: 'Merriweather', serif !important; } .titlebar { display:none; } /* Remove title bar from top of every +screen */ .monktitlebar { font-size: 80%; } /* Make top link list a little sm +aller */ textarea { width: 90%; height: 30em; } /* Don't post through a keyho +le */ tbody.nodelet td { font-size: 14px !important; } /* Reduce sidebar s +quint */ /* Put border around code areas, and select monospaced Google font */ tt.codetext { display: block; margin-right: 5px; padding: 4px 4px 4px 4px; font-size: 96%; border: 2px solid gray; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; font-family: 'PT Mono', monospace !important; }

If you do decide to use different fonts, google makes it quite easy:

  • Find the font you like and click on its "Quick Use" button
  • Scroll down to step-3 for your selected font
  • Click on the "@import" tab (since Standard is shown by default)
  • Copy the shown "@import" line for your font
  • In Display Settings, replace the import from the CSS above to use yours instead
  • You'll also need to copy the font-family line from step-4 and replace it in the CSS too
  • Obligatory Screenshot and another Screenshot with Indie Flower font

    *The code-border CSS was based on a PM post that evades my search fu right now, sorry

    Replies are listed 'Best First'.
    Re: Google fonts
    by perlron (Pilgrim) on Oct 30, 2014 at 08:24 UTC

      Good shot! I know a few buds who will be interested in reading this post!

      The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: monkdiscuss [id://1105587]
    Front-paged by Corion
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others goofing around in the Monastery: (3)
    As of 2024-04-25 19:49 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found