Thanks Daniel.

The following workaround is working OK for me now that I know there is an 
issue:

    `:fontName => "Arial"` in Ruby before I send the chart parameters to 
Google Charts via PhantomJS

    `svg.gsub!('font-family="Arial"', 'font-family="Open Sans"')` in Ruby 
after I get the resulting SVG back from Google Charts via PhantomJS

The only issue now -- other than the ugliness of the hack -- is that I need 
to declare more than one proxy font in each chart, to turn into more than 
more than one real font once I have the SVG.

I've tried using Courier and Helvetica as my second fonts, but they haven't 
worked.

Thoughts?

BTW it would be nice if the resulting solution was completely platform 
neutral, but if not I'm working on Mac OS X for test and development and 
Linux (Ubuntu on Heroku) for production.

On Wednesday, March 25, 2015 at 1:28:17 AM UTC+11, Daniel LaLiberte wrote:
>
> Steven,
>
> Google Charts v41, which was released a couple weeks ago, is now using a 
> webfont loader, so this change seems like the cause of your problem, though 
> I am not yet sure how or what you (or we) can do about it.  The developer 
> who knows more about  this will be back in a couple days, so we will find 
> out then.
>
> On Tue, Mar 24, 2015 at 9:50 AM, Steven Noble <[email protected] 
> <javascript:>> wrote:
>
>> I'm rendering my Google Charts on the server using PhantomJS.
>>
>> PhantomJS doesn't know about all the fonts I'm accessing from Google 
>> Fonts.
>>
>> Until recently, this worked fine.
>>
>> But now, after no changes at my end, my charts have stopped rendering on 
>> my server.
>>
>> Through a process of elimination, I've found the only way to get them 
>> working again is to revert to Arial.
>>
>> Has the Visualization API changed how it uses fonts?
>>
>> Perhaps it's started loading them when it previously didn't in order to 
>> more accurately estimate the length of various chart labels etc?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Visualization API" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> http://groups.google.com/group/google-visualization-api.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> 
>  - 978-394-1058
> [email protected] <javascript:>   5CC, Cambridge MA
> [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to