none
IE下svg自定义字体无法显示,在chrome下正常 RRS feed

  • 问题

  • <?xml version="1.0" encoding="utf-8"?>

    <!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363)  -->

    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

    <svg version="1.1" id="图层_1" onload="parent.Project.SvgHandler.svgOnLoad(evt)"

    xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="100%" height="100%"

    viewBox="467.5 270.5 328 211" enable-background="new 467.5 270.5 328 211" xml:space="preserve">

     <defs>
    <font horiz-adv-x='511' ><font-face
          font-family='LED'
          units-per-em='1000'
          panose-1='0 0 4 0 0 0 0 0 0 0'
          ascent='1130'
          descent='-394'
          alphabetic='0' />
             <missing-glyph horiz-adv-x='500' d=' M63,0 V760 H438 V0 H63 Z M125,63 H375 V698 H125 V63 Z' />

             <glyph unicode=' ' glyph-name='space' horiz-adv-x='1100' />

             <glyph unicode='0' glyph-name='0' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M175 87.5 L245 157.5 V647.5 L175 717.5 L105 647.5 V157.5 Z
                   M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='1' glyph-name='1' horiz-adv-x='1100'
             d='M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z' />

             <glyph unicode='2' glyph-name='2' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M175 87.5 L245 157.5 V647.5 L175 717.5 L105 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='3' glyph-name='3' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='4' glyph-name='4' horiz-adv-x='1100'
             d='M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z' />

             <glyph unicode='5' glyph-name='5' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='6' glyph-name='6' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M175 87.5 L245 157.5 V647.5 L175 717.5 L105 647.5 V157.5 Z
                   M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='7' glyph-name='7' horiz-adv-x='1100'
             d='M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='8' glyph-name='8' horiz-adv-x='1100'
             d='M192.5 70 L262.5 0 H822.5 L892.5 70 L822.5 140 H262.5 Z
                   M175 87.5 L245 157.5 V647.5 L175 717.5 L105 647.5 V157.5 Z
                   M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode='9' glyph-name='9' horiz-adv-x='1100'
             d='M910 87.5 L980 157.5 V647.5 L910 717.5 L840 647.5 V157.5 Z
                   M192.5 735 L262.5 665 H822.5 L892.5 735 L822.5 805 H262.5 Z
                   M175 752.5 L245 822.5 V1312.5 L175 1382.5 L105 1312.5 V822.5 Z
                   M910 752.5 L980 822.5 V1312.5 L910 1382.5 L840 1312.5 V822.5 Z
                   M192.5 1400 L262.5 1330 H822.5 L892.5 1400 L822.5 1470 H262.5 Z' />

             <glyph unicode=':' glyph-name='colon' horiz-adv-x='648'
             d='M330,325 A100,100 0 1,1 330,525 A100,100 0 1,1 330,325
                   M330,950 A100,100 0 1,1 330,1150 A100,100 0 1,1 330,950' />

    <glyph unicode='.' glyph-name='colon' horiz-adv-x='648'
                   d='M330,50 A100,100 0 1,1 330,250 A100,100 0 1,1 330,50' />

          </font>
    </defs>

    这是我自定义的LED字体

    <text id="Energy" transform="matrix(1 0 0 1 555.0344 362.2285)" font-family="'LED'" font-size="14.4955">00000000.00</text>

    这是我引用的地方

    在chrome下运行正常

    2014年8月27日 5:18

全部回复