galaxy001 / canvas-text

Automatically exported from code.google.com/p/canvas-text
MIT License
0 stars 0 forks source link

Font type / glyphs is null or not an object #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download canvas.text.js and include in project.
2. Download font pack and copy files to /faces relative to solution folder.
3. Add <!--[if IE]><script type="text/javascript" 
src="canvas.text.js"></script><![endif]--> to head of html document after 
<!--[if IE]><script type="text/javascript" 
src="excanvas.js"></script><![endif]-->. Firefox is already able to display 
text content of page without problems.
4. Direct IE <=8 to same page.

What is the expected output? What do you see instead?
Text being rendered, instead nothing. Error is:
Message: 'glyphs' is null or not an object
Line: 344
Char: 7
Code: 0
URI: http://localhost:1721/canvas.text.js

Please provide any additional information below.

I downloaded the 'helvetiker' font type. The following and variations thereof 
seem to have no effect:
context.font = 'bold 12px helvetiker';

Original issue reported on code.google.com by Tobste...@gmail.com on 21 Sep 2010 at 4:11

GoogleCodeExporter commented 9 years ago
I am too facing the same problem

Original comment by ultimate...@gmail.com on 18 Feb 2011 at 9:23

GoogleCodeExporter commented 9 years ago
try to include font 
<script type="text/javascript" src="faces/helvetiker_bold.typeface.js">

Original comment by marekner...@gmail.com on 3 May 2011 at 8:21

GoogleCodeExporter commented 9 years ago
I am too facing the same problem

Original comment by 83448...@qq.com on 31 Dec 2012 at 8:07

GoogleCodeExporter commented 9 years ago
Also getting this error canvas.text.js line 344 when running in Internet 
Explorer 8.

Error: Unable to get property 'A' of undefined or null reference

Original comment by mark.liv...@gmail.com on 16 Jan 2014 at 1:03

GoogleCodeExporter commented 9 years ago
Hi, 
both Noto Sans syriac eastern and western returns me with a lot of null glyphs 
- is this a problem with my indesign or has anything to with my download. 
please confirm.

Original comment by bhuv...@newgen.co on 8 Nov 2014 at 1:08