去评论
dz插件网

文字生成SVG字形路径代码,难搞吗?

xiao9469
2024/01/31 15:00:43
最近看了几个网站上的标志都用SVG字形路径生成
以前都是PNG或者JPG。很久没有弄网站了。

今天在网上折腾很久也没有搞明白。怎么把文字生成SVG字形路径代码
以下的SVG字形路径是显示的文字是testoni,我怎么用同样的字体把他换成ADAM NEE?
用的这种字体https://pan.baidu.re/down.php/e33b6216519eadf89583f93b641cb5f2.ttf
那位大佬指点下,更便捷的方式
  1. <path d="M1730.57,203.9L1740.32,243.43L1792.85,243.43L1792.85,224.48L1782.56,184.4L1730.57,184.4L1730.57,203.9ZM1715.95,325.21L1739.24,333.33L1739.24,531L1716.49,535.33L1716.49,553.2L1815.6,553.2L1815.6,535.33L1792.85,531L1792.85,282.43L1774.98,282.43L1715.95,306.8L1715.95,325.21ZM1400.19,553.21L1509.07,553.21L1509.07,535.34L1480.37,530.47L1480.37,368.54C1504.2,333.88 1533.44,315.47 1555.65,315.47C1578.4,315.47 1595.18,333.88 1595.18,373.96L1595.18,445.45C1595.18,541.85 1629.3,556.47 1648.79,556.47C1663.41,556.47 1679.12,546.72 1691.57,533.18L1682.9,521.81C1678.57,524.52 1670.99,528.85 1664.49,528.85C1648.24,528.85 1648.24,505.02 1648.24,482.82L1648.24,358.25C1648.24,316.01 1636.33,275.93 1584.88,275.93C1559.97,275.93 1530.18,287.84 1492.81,322.5L1480.35,322.5L1480.35,282.42L1463.02,282.42L1405.07,306.79L1405.07,325.2L1426.73,332.24L1426.73,530.45L1400.19,535.32L1400.19,553.21ZM1147.31,392.36C1147.31,338.2 1174.93,307.33 1215.01,307.33C1276.21,307.33 1315.2,378.82 1315.2,442.18C1315.2,496.88 1287.58,528.29 1246.96,528.29C1185.76,528.3 1147.31,456.27 1147.31,392.36ZM1090.44,417.28C1090.44,499.06 1149.47,559.71 1230.71,559.71C1311.94,559.71 1372.06,499.05 1372.06,417.28C1371.52,336.59 1312.49,275.93 1230.71,275.93C1149.47,275.93 1090.44,336.04 1090.44,417.28ZM891.69,314.38L920.39,326.84L920.39,484.44C920.39,538.05 949.63,559.72 983.21,559.72C1007.58,559.72 1046.03,541.85 1074.73,523.44L1064.44,504.49C1048.19,510.99 1025.99,518.03 1010.83,518.03C993.5,518.03 974,505.57 974,473.62L974,315.46L1061.73,315.46L1074.19,294.88L1074.19,282.42L974,282.42L974,228.81L963.17,228.81L932.3,282.42L891.68,300.29L891.68,314.38L891.69,314.38ZM673.98,349.58C673.98,372.33 683.19,403.19 726.51,428.11L764.42,449.77C795.29,467.1 808.29,476.85 808.29,495.26C808.29,513.67 794.21,526.13 769.3,526.13C751.43,526.13 727.6,518.55 695.65,492.01L680.49,506.09C710.82,547.79 747.64,559.7 772.01,559.7C826.71,559.7 855.95,523.42 855.95,486.59C855.95,448.14 835.37,423.77 796.92,402.11L768.22,385.86C743.31,371.78 724.35,358.24 724.35,336.58C724.35,314.92 743.85,302.46 765.51,302.46C791.51,302.46 811,318.71 823.46,338.2L843.5,338.2L843.5,303C822.38,288.38 794.76,275.92 761.18,275.92C719.47,275.93 673.98,297.05 673.98,349.58ZM438.94,398.86C440.02,341.45 475.22,305.17 516.38,305.17C553.21,305.17 568.37,334.41 571.08,363.12L438.94,398.86ZM386.41,417.82C386.41,502.3 445.44,559.71 527.76,559.71C577.04,559.71 620.91,522.34 636.07,508.8L625.78,493.09C607.91,501.76 566.75,520.17 541.84,520.17C494.18,520.17 452.48,489.3 441.65,432.44L633.36,380.99C628.49,317.09 588.41,275.93 523.96,275.93C447.6,275.93 386.41,332.79 386.41,417.82ZM184.4,314.38L213.1,326.84L213.1,484.44C213.1,538.05 242.34,559.72 275.92,559.72C300.29,559.72 338.74,541.85 367.44,523.44L357.15,504.49C340.9,510.99 318.7,518.03 303.54,518.03C286.21,518.03 266.71,505.57 266.71,473.62L266.71,315.46L354.44,315.46L366.9,294.88L366.9,282.42L266.72,282.42L266.72,228.81L255.89,228.81L225.02,282.42L184.4,300.3L184.4,314.38Z"/>