Today I came across a strange problem using the Google web font 'Source Sans Pro'. For some reason all the text on my site suddenly changed to italic.
This happens in Safari, Chrome and Firefox.
When I changed the font to another (e.g 'Open Sans') the italics all changed back to regular. Likewise when I just deleted the font and fell-back to the bootstrap default.
I have managed to correct it by adding 'font-weight:300;' or 700 to my body and heading tags, but if I change that to 400 I get the italics again! I'm really unsure as to why this has happened?
Font added in Wordpress functions.php like so:
// Load Google Fonts
function load_fonts() {
wp_register_style('mat-googleFonts', 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700');
wp_enqueue_style( 'mat-googleFonts');
}
add_action('wp_print_styles', 'load_fonts');
it seems to be the 400 weight causing the issue, as when removed the font renders fine.