Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道GlyphTypeface.GetGlyphOutline()WPF 中的,但我需要的是获得每个字形的中心向量,就像你用铅笔画的线条一样。这是否可能以某种方式使用字体的现有字形?
GlyphTypeface.GetGlyphOutline()
您可以采用字形多边形并生成多边形的所谓直线骨架。
http://en.wikipedia.org/wiki/Straight_skeleton
有关算法,请参见例如(Felkel 1998)
http://www.dma.fi.upm.es/mabellanas/tfcs/skeleton/html/documentacion/straight%20skeletons%20implementation.pdf