Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Matlab fails to export to png file

Subject: Matlab fails to export to png file

From: Matthias Pospiech

Date: 7 Jan, 2011 14:34:36

Message: 1 of 2

I get the following error:

Warning: Failed to draw text string
 > In C:\Program
Files\MATLAB\R2010b\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
   In graphics\private\render at 142
   In print at 316

whenever I try to print to png file.

The bitmap file is created, but without any text.

This happens on Matlab 2010b 64 bit on Windows 7 64 bit.

Rendere is either painters or zbuffer (opengl is not an option).

Subject: Matlab fails to export to png file

From: Matthias Pospiech

Date: 7 Jan, 2011 15:08:12

Message: 2 of 2

Am 07.01.2011 15:34, schrieb Matthias Pospiech:
> I get the following error:
>
> Warning: Failed to draw text string
> > In C:\Program
> Files\MATLAB\R2010b\toolbox\matlab\graphics\hardcopy.p>hardcopy at 21
> In graphics\private\render at 142
> In print at 316
>
> whenever I try to print to png file.
>
> The bitmap file is created, but without any text.
>
The problem was, that Matlab could not find the font (MyriadPro-Regular.otf)

I reinstalled the font and restarted Matlab - after that everything worked.

However the error message was not helping..

Matthias

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us