5

I need to convert a Unicode character (e.g. ⦿; CIRCLED BULLET; U+29BF) to a PNG image for use within a reporting tool (Crystal Reports). I need to preserve the font, size, and formatting of the character.

Is there a more-accurate way to do this than just ⌘⇧+4 and a less-burdensome way than Gimp or Seashore?

  • 1
    The character viewer does not work for you ? ⦿ CIRCLED BULLET Unicode: U+29BF, UTF-8: E2 A6 BF – Ruskes Apr 14 '14 at 16:07
  • how large does it appear that ⌘⇧4 isn't accurate enough? – dwightk Apr 14 '14 at 16:08
  • While I can use the character viewer to select the desired character, pasting the value into a Windows XP application (Crystal Reports) is problematic--the result is a box. – craig Apr 14 '14 at 16:13
  • @TomGewecke: I tried quite a few fonts--didn't work. – craig Apr 14 '14 at 16:32
  • 2
    Feel free to self-answer this! The answer shouldn't really be in the question – grg Apr 14 '14 at 16:33
10

Using ImageMagick:

convert -pointsize 64 -font /System/Library/Fonts/Apple\ Symbols.ttf label:⦿ output.png

convert -background transparent -fill 'hsb(0%,0%,0%)' -font /System/Library/Fonts/Apple\ Symbols.ttf -pointsize 64 -size 200x200 -gravity center label:⦿ output.png

1

The way I would do it is by typing it in a graphics editor and rasterizing it to a png to whatever size I need. Why not use Gimp or Seashore?

  • I need to have the resulting image's dimensions to match the character itself (plus a few pixels buffer). Honestly, I'm not familiar enough with either tool to know if this is possible. – craig Apr 14 '14 at 16:17
  • 1
    Well i mean it's going to be imperfect no mater how you slice it. Youre going from a vector image (made of measurements that dictate the absolute shape and size of the strokes) to discreet pixels in a bitmapped image – Alexander - Reinstate Monica Apr 14 '14 at 16:22
1

Character Map is the (clunky) equivalent of Character Viewer on OS X:

Windoze Character Mope

Note the Font — only certain typefaces contain U+29BF and U+2318. Most applications including Crystal Reports support Unicode Fonts.

  • How did you know that the Segoe UI Symbol contained this character? Trial and error? – craig Apr 15 '14 at 12:12
1

Possible solution: Create Banner Image from Text

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .