use Label in "Bold-italic" without bold or italic font

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
dipmala
Posts: 1
Joined: 2013-01-01T23:38:27-07:00
Authentication code: 6789

use Label in "Bold-italic" without bold or italic font

Post by dipmala »

Hello,

I use "label" to create text image. Now i need this text in "Bold" and "Italic" format but i can't find anything. so can you please suggest me how text in "Bold" and "Italic" without using bold and italic font.

Thanks,

Dipmala
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: use Label in "Bold-italic" without bold or italic font

Post by fmw42 »

I do not think you can do that with label: without a bold or italic font.

I believe you need to use -draw or pango:

See
http://www.imagemagick.org/Usage/text/
http://www.imagemagick.org/Usage/draw/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: use Label in "Bold-italic" without bold or italic font

Post by anthony »

There are ways of fakeing bold, but generally only with larger text. Smaller text tends not to have the space for the bolding effects, unless you also increase inter-character spacing.

The most common method is to enable stroke (color) and increase the stroke width.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply