I bet the issue is that, whenever the webfont loader actually has to load
fonts, this is done asynchronously, and your chart.draw() will return
without having finished the drawing.  So you need to wait for the 'ready'
event on the chart before you capture an image.

On Tue, Mar 24, 2015 at 10:28 AM, Daniel LaLiberte <[email protected]>
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]> 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].
>> 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.
>>
>
>
>
> --
> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
>  - 978-394-1058
> [email protected] <[email protected]>   5CC, Cambridge MA
> [email protected] <[email protected]> 9 Juniper Ridge
> Road, Acton MA
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>  -
978-394-1058
[email protected] <[email protected]>   5CC, Cambridge MA
[email protected] <[email protected]> 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