LLLLLLL Posted June 15, 2016 Share Posted June 15, 2016 (edited) A website user was telling me that text wasn't appearing on bold when the CSS called for font-weight:bold. She's using a Mac desktop, with Safari (and possibly Chrome; I don't have all info yet). The font is Raleway: <link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet" type="text/css"> From what I was able to find -- no one on Google seemed to have this exact issue -- sometimes Safari won't show bold unless you specifically reference a font for it? Is that right? So the solution seems to be changing the stylesheet reference to: <link href="https://fonts.googleapis.com/css?family=Raleway:400,700" rel="stylesheet" type="text/css"> This just seems incredibly odd to me. I've never heard of a user having this issue before. Is this known? Is that the actual fix? Am I to assume all browsers on Chromebook (my preferred platform) and Linux and Windows just create an ad-hoc "faux bold" to display, if bold isn't specified? A lot of questions, but this is just a weird issue, especially since I haven't heard of it until June 2016. Edited June 15, 2016 by timneu22 Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/ Share on other sites More sharing options...
LLLLLLL Posted June 15, 2016 Author Share Posted June 15, 2016 I guess PHPFreaks won't let me edit more than once? Indeed, this is a Mac issue: Chrome, Safari, and Firefox on Mac all had the issue. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533683 Share on other sites More sharing options...
Muddy_Funster Posted June 16, 2016 Share Posted June 16, 2016 The boards here allow you to edit as many times as you like, but only within a certain time limit. The issue isn't a Mac issue as far as I am aware - it's unlikely that the underlying OS would have much influence on the rendering of third party browser software. The issue is documented however, primarily with regards to IE7 and 8, and the Google Fonts Getting Started Page explains the following: The Google Fonts API provides the regular version of the requested fonts by default. To request other styles or weights, append a colon ( to the name of the font, followed by a list of styles or weights separated by commas (,). So yeah, the actual fix is to link properly to the all the fonts, styles and weights that you intend to use. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533722 Share on other sites More sharing options...
LLLLLLL Posted June 16, 2016 Author Share Posted June 16, 2016 But... it is a Mac issue. Chromebook, Chrome on Windows, Firefox, IE, Edge (whatever that nonsense is!) all showed bold without the colon:weight thing. Only Mac did not. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533754 Share on other sites More sharing options...
Muddy_Funster Posted June 17, 2016 Share Posted June 17, 2016 And have you checked on every version of every browser on every OS? It's irrelevant anyway - the documentation tells you how to code it properly, and when you do code it properly there are no problems, by that simple fact (and sorry for being blunt) it's not a Mac issue: it's a coding issue. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533762 Share on other sites More sharing options...
LLLLLLL Posted June 18, 2016 Author Share Posted June 18, 2016 The arrogance on PHP Freaks is why I rarely visit. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533780 Share on other sites More sharing options...
kicken Posted June 18, 2016 Share Posted June 18, 2016 (edited) According to "Say no to faux bold" on A List Apart, browers may attempt to simulate bold if a font doesn't have a native bold variant. As Muddy_Funster says though, if you want to use bold then you need to import your font with the bold variant. Doing anything else is improper usage on your part, not Mac being wrong. Edited June 18, 2016 by kicken Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533785 Share on other sites More sharing options...
LLLLLLL Posted June 18, 2016 Author Share Posted June 18, 2016 As I pointed out, browsers don't attempt to do it. Somehow, the browser and the OS decide together. Same version of Chrome does on ChromeOS/Windows, but not Mac. Sorry that I pointed this out and it might have helped someone. Quote Link to comment https://forums.phpfreaks.com/topic/301346-google-font-not-appearing-bold-on-mac-can-that-be/#findComment-1533816 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.