hey folks - i have a similar issue as this, only i'm running my own Canvas LMS server and pulling a few key docs from Google via iframe where i would prefer to only update the Google doc rather than manually copy changes each time. i had a much older version of Canvas previously and it was able to display iframe text fonts exactly from Google, but this most recent Canvas version apparently dropped all formatting and used Times New Roman instead. tested in Safari and Firefox. my Google doc does not use Times New Roman. i did switch it to Lato but the results are the same.
checking all of this inside Firefox the only specification for font style is given at the bottom of the Inspector and it reads much the same as others have posted.
font-family: "Lato Extended","Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
but this is obviously not being transferred to the iframe contents. generally a Times New Roman font is indicative of CSS formatting breaking. should i copy the font style inline into the HTML for the iframe? any advice appreciated! i did put in some custom CSS for the login page so i could make the icon larger, but otherwise left it alone.
some further thoughts - i've copied the link from Google directly and pasted it into the iframe and that version does render the font correctly
"(Google Document link)/edit?usp=sharing"
this also shows a lot of icons and features from Google at the same time.
however if i use the 'embedded' keyword as shown here:
"(Google Document link)/pub?embedded=true"
then the formatting goes back to the Times New Roman formatting while also losing the previous data and icons from Google.
Update - it appears that 'pub' mode may be the issue. 'edit' gets me the better font but also the undesirable elements. the 'embedded' keyword doesn't seem to matter. if i embed in edit mode the fonts are correct but overall layout is not. if i embed in pub mode i lose all the extra formatting but also the font.
anyway if anyone's got ideas i'm open to consider them. thanks!
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.