Skip to main content
added 97 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

Clear[fonts, fillcurves];  
fonts = 
 ImportString[
  ExportString[Text[Style["qH", FontFamily -> "Cambria"]], 
   "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True];
fillcurves = Cases[fonts, _FilledCurve, -1];
HighlightMesh[BoundaryDiscretizeGraphics[#, MaxCellMeasure -> .1], 
    0] & /@ fillcurves // Show

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

Clear[fonts, fillcurves]; fonts = 
 ImportString[
  ExportString[Text[Style["qH", FontFamily -> "Cambria"]], 
   "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True];
fillcurves = Cases[fonts, _FilledCurve, -1];
HighlightMesh[BoundaryDiscretizeGraphics[#, MaxCellMeasure -> .1], 
    0] & /@ fillcurves // Show

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

Clear[fonts, fillcurves]; 
fonts = 
 ImportString[
  ExportString[Text[Style["qH", FontFamily -> "Cambria"]], 
   "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True];
fillcurves = Cases[fonts, _FilledCurve, -1];
HighlightMesh[BoundaryDiscretizeGraphics[#, MaxCellMeasure -> .1], 
    0] & /@ fillcurves // Show

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

added 97 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

HighlightMesh[
Clear[fonts, BoundaryDiscretizeGraphics[
fillcurves]; fonts ImportString[
=  
 ImportString[
  ExportString[Text[Style["b"ExportString[Text[Style["qH", FontFamily -> "Cambria"]], 
     "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]]True];
fillcurves = Cases[fonts, 
 _FilledCurve, -1];
HighlightMesh[BoundaryDiscretizeGraphics[#, MaxCellMeasure -> .1], 
    0] & /@ fillcurves // Show

enter image description hereenter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

HighlightMesh[
 BoundaryDiscretizeGraphics[
  ImportString[
    ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
     "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
   MaxCellMeasure -> .1], 0]

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

Clear[fonts, fillcurves]; fonts =  
 ImportString[
  ExportString[Text[Style["qH", FontFamily -> "Cambria"]], 
   "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True];
fillcurves = Cases[fonts, _FilledCurve, -1];
HighlightMesh[BoundaryDiscretizeGraphics[#, MaxCellMeasure -> .1], 
    0] & /@ fillcurves // Show

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

added 24 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

HighlightMesh[
 BoundaryDiscretizeGraphics[
  ImportString[
    ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
     "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
  MaxCellMeasure -> .1], 0]

enter image description here

Clear["Global`*"];
 lines = 
 MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {"ArcLength", 0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red,
     AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description hereenter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

HighlightMesh[
 BoundaryDiscretizeGraphics[
  ImportString[
    ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
     "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
  MaxCellMeasure -> .1], 0]

enter image description here

Clear["Global`*"];
 lines = 
 MeshPrimitives[
  BoundaryDiscretizeGraphics[
   ImportString[
     ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
      "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
   MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {"ArcLength", 0 &}, Mesh -> #2, MeshStyle -> Red,
     AspectRatio -> Automatic, Axes -> False] &, {lines, 
   Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

Edit

For the original code,we can subdivide the line to add some points.

polys = #["BoundaryPolygons"] &@
   BoundaryDiscretizeGraphics[
    Text[Style["b", FontFamily -> "Cambria"]], _Text, 
    MaxCellMeasure -> {"Length" -> 1}];
δ = 1/4;
lines = MeshPrimitives[#, 1] & /@ polys;
Flatten[Map[
    Subdivide[Sequence @@ First@#, Ceiling[ArcLength@#/δ]] &, 
    lines, {2}], 1] // Map@Point // Graphics

enter image description here

HighlightMesh[
 BoundaryDiscretizeGraphics[
  ImportString[
    ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
     "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
  MaxCellMeasure -> .1], 0]

enter image description here

Clear["Global`*"];
lines = MeshPrimitives[
   BoundaryDiscretizeGraphics[
    ImportString[
      ExportString[Text[Style["b", FontFamily -> "Cambria"]], 
       "PDF"], {"PDF", "PageGraphics"}, "TextOutlines" -> True][[1]], 
    MaxCellMeasure -> .1], 1, "Multicells" -> True];
δ = .5;
MapThread[
  ListLinePlot[#1 /. Line -> Apply@Join, 
    MeshFunctions -> {0 &, "ArcLength"}, Mesh -> {#2}, 
    MeshStyle -> Red, AspectRatio -> Automatic, 
    Axes -> False] &, {lines, 
   Subdivide /@ Floor /@ (ArcLength /@ lines/δ)}] // Show

enter image description here

deleted 9 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
added 555 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
deleted 9 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
deleted 7 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
added 1 character in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
added 522 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
deleted 56 characters in body
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading
Source Link
cvgmt
  • 84.1k
  • 6
  • 97
  • 179
Loading