# Plot a alphabetic character in 2D

I was wondering how I can graphically plot an alphabetic character, for example D, in 2 dimension, using mathematica? I was using ListPlot with specific x and y values but it's not looking anything like a D...

Help would be appriciated! :)

This is my current D:

• Seen this? – J. M.'s torpor Apr 14 '16 at 16:09
• I looked through the link right now, but that's not how I need to make it work. Thanks though:) – Vetenskap Apr 14 '16 at 16:12
• A bit unclear... do you want 2D coordinates for a given character or simply text in 2D... for the second, look (rather anticlimactically) at Text. – Yves Klett Apr 14 '16 at 16:27
• Obviously ListPlot can work only if you add more points. Maybe you want this? – Jens Apr 14 '16 at 16:29
• – user9660 Apr 14 '16 at 16:34

How about discretizing the letter's boundary?

stringBoundary[char_String] :=
RegionBoundary[DiscretizeGraphics[First@ImportString[ExportString[char, "PDF"]]]]

stringBoundary["D"]


This is also possible in v11.0+ with ImageMesh and Rasterize. The RasterSize ends up affecting mesh quality here:

RegionBoundary@ImageMesh@ColorNegate@Rasterize["любо",RasterSize->400]


You could also just get the edge by using a FillingTransform to ignore the interior of shapes:

RegionBoundary@ImageMesh@FillingTransform@ColorNegate@Rasterize["D", RasterSize -> 400]


• To get the points on the D shape, just use MeshCoordinates. – flinty Sep 24 '20 at 14:17