项目G2SVG.text转换
1、这里,下面两种 文字的呈现效果是一样的,<p/>中的 font-size:20没有加上"px" 因此没有效果 还是使用的默认值
于是,暂时 得到结论,回车 换到下一行显示文字 这里的 y值,实际上就等于 在本行<text/>的 descent处 +1px ! !
<text x="191" y="185" fill="white" alignment-baseline="text-before-edge" >东怡变04 <tspan x="191" dy="40px" alignment-baseline="text-before-edge">怡</tspan> </text> <switch> <foreignObject width="1000" height="1000" x="191" y="185"> <p xmlns="http://www.w3.org/1999/xhtml" p_FontHeight="20" p_ItalicFontFlag="0" id="8000030" p_BoldFontFlag="0" m_DYModelType="0" p_ZoomMaxLevel="0" p_FontWidth="20" style="margin:0; font-size:20; color:rgb(255,255,254); font-family:Bitstream Charter; " p_AssFlag="128" p_MatrixFontFlag="0" p_ShowModeMask="3" p_SelfDefString="" switchapp="1" p_DyColorFlag="0" p_EngcodeString="" af2="0" p_NameString="" af3="7" af4="0" af="34831" transform="rotate(0) scale(1,1)" p_FontDeltaX="0" p_FontDeltaY="0" stroke-width="2">东<br/><br/> 怡<br/><br/> 变<br/><br/> 04</p> </foreignObject> <text>Your SVG viewer cannot display html.</text> </switch>
2、
3、
4、
5、
6、

浙公网安备 33010602011771号