📜  SVG lengthAdjust 属性

📅  最后修改于: 2021-11-09 09:04:10             🧑  作者: Mango

lengthAdjust属性用于决定在 textLength属性定义的长度内拉伸文本。使用此属性的元素是

句法:

lengthAdjust = spacing | spacingAndGlyphs

属性值: lengthAdjust属性接受上面提到和下面描述的值。

  • 间距:它会调整字形之间的间距,但不会拉伸或挤压字形本身。
  • 间距AndGlyphs:它将调整字形之间的间距和字形大小。

注意: lengthAdjust属性的默认值为间距。

下面的示例说明了lengthAdjust属性的使用。

示例 1:

HTML


  

    

  

    

        GeeksforGeeks     

                                              Stretched with spacing only:-                                              A Computer Science                 portal for geeks.                              


HTML


  

    

  

    

        GeeksforGeeks     

                                              Stretched with spacing                 and glyphs:-                                              A Computer Science                 portal for geeks.                              


HTML


  

    

  

    

        GeeksforGeeks     

                                              Shrunk with spacing only:-                                              A Computer Science                 portal for geeks.                              


HTML


  

    

  

    

        GeeksforGeeks     

                                              Shrunk with spacing                 and glyphs:-                                           A Computer Science                 portal for geeks.                              


输出:

示例 2:

HTML



  

    

  

    

        GeeksforGeeks     

                                              Stretched with spacing                 and glyphs:-                                              A Computer Science                 portal for geeks.                              

输出:

示例 3:

HTML



  

    

  

    

        GeeksforGeeks     

                                              Shrunk with spacing only:-                                              A Computer Science                 portal for geeks.                              

输出:

示例 4:

HTML



  

    

  

    

        GeeksforGeeks     

                                              Shrunk with spacing                 and glyphs:-                                           A Computer Science                 portal for geeks.                              

输出: