You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by be...@apache.org on 2001/06/13 02:13:20 UTC

cvs commit: xml-batik/samples/tests fontKerning.svg smallFonts.svg textOnPathSpaces.svg verticalText.svg

bella       01/06/12 17:13:20

  Modified:    samples/tests verticalText.svg
  Added:       samples/tests fontKerning.svg smallFonts.svg
                        textOnPathSpaces.svg
  Log:
  added some more test files, improved the vertical text file
  
  Revision  Changes    Path
  1.2       +34 -15    xml-batik/samples/tests/verticalText.svg
  
  Index: verticalText.svg
  ===================================================================
  RCS file: /home/cvs/xml-batik/samples/tests/verticalText.svg,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- verticalText.svg	2001/05/19 02:36:58	1.1
  +++ verticalText.svg	2001/06/13 00:13:20	1.2
  @@ -1,4 +1,4 @@
  -<?xml version="1.0" standalone="no"?>
  +<?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
   "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
   
  @@ -14,7 +14,7 @@
   <!-- Vertical <text>                                                           -->
   <!--                                                                           -->
   <!-- @author dean.jackson@cmis.csiro.au                                       -->
  -<!-- @version $Id: verticalText.svg,v 1.1 2001/05/19 02:36:58 vhardy Exp $     -->
  +<!-- @version $Id: verticalText.svg,v 1.2 2001/06/13 00:13:20 bella Exp $     -->
   <!-- ========================================================================= -->
   <?xml-stylesheet type="text/css" href="test.css" ?>  
   
  @@ -25,20 +25,39 @@
   
           <text class="title" x="50%" y="40">Vertical Text Test</text>
   
  +        <line x1="20" y1="75" x2="430" y2="75" stroke="black"/>
  +
  +	  <g opacity="0.5">
  +            <circle cx="50" cy="75" r="2" fill="red" />
  + 		<circle cx="100" cy="75" r="2" fill="red" />
  + 		<circle cx="150" cy="75" r="2" fill="red" />
  + 		<circle cx="200" cy="75" r="2" fill="red" />
  + 		<circle cx="250" cy="75" r="2" fill="red" />
  + 		<circle cx="300" cy="75" r="2" fill="red" />
  + 		<circle cx="350" cy="75" r="2" fill="red" />
  +            <circle cx="400" cy="75" r="2" fill="red" />
  +
  +            <line x1="50" y1="75" x2="50" y2="450" stroke="red" />
  +            <line x1="100" y1="75" x2="100" y2="450" stroke="red" />
  +		<line x1="150" y1="75" x2="150" y2="450" stroke="red" />
  +		<line x1="200" y1="75" x2="200" y2="450" stroke="red" />
  +		<line x1="250" y1="75" x2="250" y2="450" stroke="red" />
  +		<line x1="300" y1="75" x2="300" y2="450" stroke="red" />
  +            <line x1="350" y1="75" x2="350" y2="450" stroke="red" />
  +            <line x1="400" y1="75" x2="400" y2="450" stroke="red" />
  +        </g>
  +
  +
  +        <text x="50" y="75" writing-mode="tb" font-size="15">Writing top to bottom &#x44e5;&#x44e6; </text>
  +        <text x="100" y="75" glyph-orientation-vertical="auto" writing-mode="tb" font-size="15">Glyph Orientation:auto&#x44e5;&#x44e6;</text>
  +        <text x="150" y="75" glyph-orientation-vertical="0" writing-mode="tb" font-size="15">Glyph Orientation:0&#x44e5;&#x44e6;</text>
  +        <text x="200" y="75" glyph-orientation-vertical="90" writing-mode="tb" font-size="15">Glyph Orientation:90&#x44e5;&#x44e6;</text>
  +        <text x="250" y="75" glyph-orientation-vertical="180" writing-mode="tb" font-size="15">Glyph Orientation:180&#x44e5;&#x44e6;</text>
  +        <text x="300" y="75" glyph-orientation-vertical="270" writing-mode="tb" font-size="15">Glyph Orientation:270&#x44e5;&#x44e6;</text>
  +        <text x="350" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="red">&lt;tspan&gt;</tspan> element</text>
  +        <text x="400" y="75" writing-mode="tb" font-size="15">Embedded <tspan fill="blue" glyph-orientation-vertical="0">orientated</tspan> element</text>
  +       
   
  -    <line x1="20" y1="100" x2="430" y2="100" stroke="black"/>
  -
  -        
  -        <text x="50" y="100" writing-mode="tb" font-size="15">Writing top to bottom</text>
  -
  -        <text x="125" y="100" glyph-orientation-vertical="auto" writing-mode="tb" font-size="15">Glyph Orientation: auto</text>
  -
  -        <text x="200" y="100" glyph-orientation-vertical="0" writing-mode="tb" font-size="15">Glyph Orientation: 0</text>
  -
  -        <text x="275" y="100" writing-mode="tb" font-size="15">Embedded <tspan fill="red">&lt;tspan&gt;</tspan> element</text>
  -
  -        <text x="350" y="100" writing-mode="tb" font-size="15">Embedded <tspan fill="blue" glyph-orientation-vertical="0">orientated</tspan> element</text>
  -       
       </g>
   
       <!-- ============================================================= -->
  
  
  
  1.1                  xml-batik/samples/tests/fontKerning.svg
  
  Index: fontKerning.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Tests various methods of specifying kerning.                              -->
  <!--                                                                           -->
  <!-- @author bella.robinson@cmis.csiro.au                                      -->
  <!-- @version $Id: fontKerning.svg,v 1.1 2001/06/13 00:13:20 bella Exp $ -->
  <!-- ========================================================================= -->
  <?xml-stylesheet type="text/css" href="test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500">
  <title>SVGFont - kerning test</title>
  
      <style type="text/css"><![CDATA[
          
      ]]></style>
  
      <g id="content">
  
          <text class="title" x="50%" y="50">SVG fonts - kerning test</text>
  
          <defs>
  
              <!-- ============================= -->
              <!-- SVG Font Definition           -->
              <!-- ============================= -->
       
              <!-- This is an encoding of Microsoft's Comic Sans font -->
              <!-- in SVG format (as allowed in the license). For the -->
              <!-- true type version of this font, refer to           -->
              <!-- http://www.microsoft.com/truetype                  -->
              <!-- Converted using SteadyState's TrueType/SVG font    -->
              <!-- toolkit (http://www.steadystate.com/svg            -->
              <!-- Kerning has been added to the font for testing     -->
              <!-- purposes.                                          -->
  
              <font horiz-adv-x="959">
              <font-face
               font-family="SVGComic"            
               units-per-em="2048"
               panose-1="3 15 7 2 3 3 2 2 2 4"
               ascent="2257"
               descent="597"
               baseline="0"/>
             <missing-glyph horiz-adv-x="1024" d="M128 0V1638H896V0H128zM256 128H768V1510H256V128z"/>
             <!-- "a" glyph -->
             <glyph unicode="a" glyph-name="a" horiz-adv-x="1048" d="M920 -66Q901 -66 851 -22Q806 19 784 51Q688 -1 615 -27T493 -54Q259 -54 152 78Q51 202 51 458Q51 700 217 872T615 1044Q702 1044 810 999Q946 943 946 864Q946 837 926 816Q916 778 911 691T904 468Q903
  344 921 272Q931 228 984 96Q991 78 1007 43L1013 26Q1013 -14 985 -40T920 -66zM712 629Q712 672 717 722T734 830Q697 849 671 858T628 867Q473 867 361 741T248 449Q248 285 306 203T480 121Q576 121 643 156Q679 175 744 232Q712 497 712 629z"/>
  
             <!-- "b" glyph -->
             <glyph unicode="b" glyph-name="b" horiz-adv-x="1215" d="M606 -42Q453 -42 328 18Q296 -30 250 -30Q212 -30 186 -4T159 63Q159 89 161 140T164 217Q164 323 159 534T153 852Q153 925 154 1128T155 1406Q155 1466 180 1514Q213 1575 271 1575Q346 1575 346 1488Q346
  1474 341 1447T336 1406L333 1187L331 932Q418 991 496 1020T644 1050Q859 1050 993 885Q1119 730 1119 504Q1119 276 972 117T606 -42zM644 861Q562 861 476 815Q434 792 332 716L330 543L331 387L332 223Q380 201 467 167Q529 148 606 148Q751 148 844 250T937
  504Q937 653 862 753Q781 861 644 861z"/>
  
             <!-- "c" glyph -->
             <glyph unicode="c" glyph-name="c" horiz-adv-x="1052" d="M591 -63Q386 -63 249 61Q105 191 105 404Q105 607 240 823Q390 1063 578 1063Q676 1063 797 1017Q950 958 950 873Q950 835 925 806T863 776Q834 776 813 793T771 828Q712 875 578 875Q476 875 376 693Q285
  526 285 404Q285 272 375 196Q459 125 591 125Q651 125 719 157L835 219Q865 235 878 235Q915 235 942 206T969 138Q969 65 815 -3Q680 -63 591 -63z"/>
  
             <!-- "d" glyph -->
             <glyph unicode="d" glyph-name="d" horiz-adv-x="1203" d="M1060 883Q1048 736 1048 589Q1048 256 1079 86Q1081 72 1081 63Q1081 23 1053 -3T988 -29Q926 -29 897 61Q825 8 748 -19T586 -46Q379 -46 243 92Q103 233 103 454Q103 721 244 882T612 1043Q728 1043
  791 1007L885 938Q899 1359 918 1505Q931 1594 1009 1594Q1100 1594 1100 1497Q1100 1358 1060 883zM616 857Q448 857 364 758T280 458Q280 329 371 236T586 143Q670 143 728 174Q762 192 839 257Q854 270 868 288L865 461L866 577L868 695Q830 776 767 816T616
  857z"/>
  
             <!-- "e" glyph -->
             <glyph unicode="e" glyph-name="e" horiz-adv-x="1122" d="M606 -46Q380 -46 240 67Q87 192 87 417Q87 677 213 853Q350 1045 579 1045Q745 1045 850 989Q979 920 979 777Q979 677 866 595Q816 559 654 483L272 302Q328 219 411 177T606 135Q675 135 768 161Q886
  194 920 247T993 301Q1028 301 1055 275T1083 213Q1083 102 904 22Q751 -46 606 -46zM579 865Q457 865 376 771T255 486L562 632Q743 720 820 785Q734 865 579 865z"/>
  
             <!-- "f" glyph -->
             <glyph unicode="f" glyph-name="f" horiz-adv-x="1041" d="M811 1406Q569 1406 540 1070L537 1008Q707 1020 757 1020Q916 1020 916 920Q916 847 838 833Q804 827 759 828T528 815L520 587Q520 525 524 401T528 216Q528 26 506 -80Q489 -160 413 -160Q372 -160
  343 -134T314 -67Q314 -59 316 -47Q337 83 337 236L334 509V799Q209 789 176 789Q75 789 75 886Q75 985 250 990L346 993Q349 1049 361 1145Q387 1367 473 1472Q577 1599 798 1599Q941 1599 941 1502Q941 1406 811 1406z"/>
  
             <!-- "g" glyph -->
             <glyph unicode="g" glyph-name="g" horiz-adv-x="1087" d="M962 431L939 95Q933 -105 898 -232Q853 -394 754 -471Q634 -564 407 -564Q274 -564 184 -546Q58 -521 58 -442Q58 -353 145 -353Q181 -353 265 -370T451 -386Q643 -383 716 -200Q764 -78 767 175Q713
  75 639 25T468 -25Q287 -25 174 98T60 419Q60 689 215 854Q375 1024 651 1024Q744 1024 807 1000T903 928Q1010 925 1010 809Q1010 738 989 619Q966 481 962 431zM641 864Q451 864 347 733Q254 615 254 433Q254 288 309 215T474 142Q575 142 670 256Q756 361 768
  464Q789 572 813 803Q773 834 730 849T641 864z"/>
  
             <!-- "u" glyph -->
             <glyph unicode="u" glyph-name="u" horiz-adv-x="1065" d="M955 584Q955 512 956 368T957 152Q957 130 960 85T964 18Q964 -25 935 -52T864 -80Q787 -80 766 15Q641 -50 478 -50Q347 -50 261 8Q166 72 148 195Q109 460 109 667Q109 804 139 979Q153 1066 234 1066Q277
  1066 306 1039T335 968Q335 922 321 821T306 667Q306 500 317 381T350 190Q383 172 415 163T478 153Q612 153 761 196L760 399L758 593Q758 809 777 968Q788 1060 874 1060Q917 1060 946 1032T973 962L955 584z"/>
  
             <!-- "v" glyph -->
             <glyph unicode="v" glyph-name="v" horiz-adv-x="996" d="M600 52Q597 -40 509 -40Q436 -40 403 46L250 452L72 911Q62 937 62 957Q62 998 93 1027T165 1056Q225 1056 251 995L505 296Q580 456 694 760Q721 840 779 986Q810 1050 867 1050Q908 1050 939 1021T970
  952Q970 914 805 524L600 52z"/>
  
             <!-- "w" glyph -->
             <glyph unicode="w" glyph-name="w" horiz-adv-x="1401" d="M1336 895Q1258 569 1132 158Q1104 67 1039 -29Q1004 -82 944 -81Q835 -79 774 190Q754 276 733 424L700 647L618 456L466 43Q453 5 428 -15Q398 -73 332 -75Q256 -78 185 223Q149 378 113 643L89 793Q76
  883 76 944Q76 986 105 1013T177 1041Q253 1041 271 958Q284 899 292 812L307 665L366 216Q477 524 596 926Q629 1037 711 1037Q790 1037 818 913Q844 796 883 553Q923 301 954 160L1027 432L1156 977Q1171 1038 1242 1038Q1284 1038 1315 1010T1346 941Q1346 936
  1336 895z"/>
  
             <!-- "x" glyph -->
             <glyph unicode="x" glyph-name="x" horiz-adv-x="1209" d="M1058 858L912 721L734 544L1060 118Q1085 86 1085 55Q1085 16 1055 -14T987 -44Q949 -44 918 -7Q826 100 594 405L399 204Q340 151 227 39Q195 3 158 3Q120 3 91 33T61 102Q61 133 86 165Q114 202 173
  254Q242 315 264 338L477 561L346 750Q267 863 208 915Q170 949 170 989Q170 1029 198 1060T264 1091Q323 1091 442 937L615 698L811 878Q933 993 976 1058Q1008 1105 1052 1105Q1091 1105 1121 1076T1151 1009Q1151 954 1058 858z"/>
  
             <!-- "y" glyph -->
             <glyph unicode="y" glyph-name="y" horiz-adv-x="1066" d="M1011 892L665 144Q537 -129 469 -313L403 -507Q377 -579 313 -579Q271 -579 241 -552T210 -483Q210 -383 426 96L68 785L23 858Q-4 904 -4 935Q-4 976 27 1007T98 1038Q144 1038 169 1003Q339 767 534
  331L682 676Q762 855 836 984Q868 1040 920 1040Q961 1040 992 1011T1024 942Q1024 920 1011 892z"/>
  
             <!-- "z" glyph -->
             <glyph unicode="z" glyph-name="z" horiz-adv-x="1102" d="M964 809Q875 702 736 499Q575 263 500 165Q605 170 683 170Q722 170 799 155T915 140Q959 140 986 112T1014 39Q1014 -6 987 -34T915 -62Q876 -62 799 -47T683 -32Q458 -32 256 -73Q235 -77 219 -77Q122
  -77 122 8Q122 58 172 104Q433 340 740 839Q607 831 547 831Q399 831 243 854Q154 867 154 953Q154 997 181 1026T249 1056Q298 1056 397 1045T547 1033Q615 1033 751 1042T955 1052Q1040 1052 1040 982Q1040 901 964 809z"/>
  
             </font>
  
             <!-- Comic font with kerning -->
  
             <font horiz-adv-x="959">
              <font-face
               font-family="SVGComicK"            
               units-per-em="2048"
               panose-1="3 15 7 2 3 3 2 2 2 4"
               ascent="2257"
               descent="597"
               baseline="0"/>
             <missing-glyph horiz-adv-x="1024" d="M128 0V1638H896V0H128zM256 128H768V1510H256V128z"/>
             <!-- "a" glyph -->
             <glyph unicode="a" glyph-name="a" horiz-adv-x="1048" d="M920 -66Q901 -66 851 -22Q806 19 784 51Q688 -1 615 -27T493 -54Q259 -54 152 78Q51 202 51 458Q51 700 217 872T615 1044Q702 1044 810 999Q946 943 946 864Q946 837 926 816Q916 778 911 691T904 468Q903
  344 921 272Q931 228 984 96Q991 78 1007 43L1013 26Q1013 -14 985 -40T920 -66zM712 629Q712 672 717 722T734 830Q697 849 671 858T628 867Q473 867 361 741T248 449Q248 285 306 203T480 121Q576 121 643 156Q679 175 744 232Q712 497 712 629z"/>
  
             <!-- "b" glyph -->
             <glyph unicode="b" glyph-name="b" horiz-adv-x="1215" d="M606 -42Q453 -42 328 18Q296 -30 250 -30Q212 -30 186 -4T159 63Q159 89 161 140T164 217Q164 323 159 534T153 852Q153 925 154 1128T155 1406Q155 1466 180 1514Q213 1575 271 1575Q346 1575 346 1488Q346
  1474 341 1447T336 1406L333 1187L331 932Q418 991 496 1020T644 1050Q859 1050 993 885Q1119 730 1119 504Q1119 276 972 117T606 -42zM644 861Q562 861 476 815Q434 792 332 716L330 543L331 387L332 223Q380 201 467 167Q529 148 606 148Q751 148 844 250T937
  504Q937 653 862 753Q781 861 644 861z"/>
  
             <!-- "c" glyph -->
             <glyph unicode="c" glyph-name="c" horiz-adv-x="1052" d="M591 -63Q386 -63 249 61Q105 191 105 404Q105 607 240 823Q390 1063 578 1063Q676 1063 797 1017Q950 958 950 873Q950 835 925 806T863 776Q834 776 813 793T771 828Q712 875 578 875Q476 875 376 693Q285
  526 285 404Q285 272 375 196Q459 125 591 125Q651 125 719 157L835 219Q865 235 878 235Q915 235 942 206T969 138Q969 65 815 -3Q680 -63 591 -63z"/>
  
             <!-- "d" glyph -->
             <glyph unicode="d" glyph-name="d" horiz-adv-x="1203" d="M1060 883Q1048 736 1048 589Q1048 256 1079 86Q1081 72 1081 63Q1081 23 1053 -3T988 -29Q926 -29 897 61Q825 8 748 -19T586 -46Q379 -46 243 92Q103 233 103 454Q103 721 244 882T612 1043Q728 1043
  791 1007L885 938Q899 1359 918 1505Q931 1594 1009 1594Q1100 1594 1100 1497Q1100 1358 1060 883zM616 857Q448 857 364 758T280 458Q280 329 371 236T586 143Q670 143 728 174Q762 192 839 257Q854 270 868 288L865 461L866 577L868 695Q830 776 767 816T616
  857z"/>
  
             <!-- "e" glyph -->
             <glyph unicode="e" glyph-name="e" horiz-adv-x="1122" d="M606 -46Q380 -46 240 67Q87 192 87 417Q87 677 213 853Q350 1045 579 1045Q745 1045 850 989Q979 920 979 777Q979 677 866 595Q816 559 654 483L272 302Q328 219 411 177T606 135Q675 135 768 161Q886
  194 920 247T993 301Q1028 301 1055 275T1083 213Q1083 102 904 22Q751 -46 606 -46zM579 865Q457 865 376 771T255 486L562 632Q743 720 820 785Q734 865 579 865z"/>
  
             <!-- "f" glyph -->
             <glyph unicode="f" glyph-name="f" horiz-adv-x="1041" d="M811 1406Q569 1406 540 1070L537 1008Q707 1020 757 1020Q916 1020 916 920Q916 847 838 833Q804 827 759 828T528 815L520 587Q520 525 524 401T528 216Q528 26 506 -80Q489 -160 413 -160Q372 -160
  343 -134T314 -67Q314 -59 316 -47Q337 83 337 236L334 509V799Q209 789 176 789Q75 789 75 886Q75 985 250 990L346 993Q349 1049 361 1145Q387 1367 473 1472Q577 1599 798 1599Q941 1599 941 1502Q941 1406 811 1406z"/>
  
             <!-- "g" glyph -->
             <glyph unicode="g" glyph-name="g" horiz-adv-x="1087" d="M962 431L939 95Q933 -105 898 -232Q853 -394 754 -471Q634 -564 407 -564Q274 -564 184 -546Q58 -521 58 -442Q58 -353 145 -353Q181 -353 265 -370T451 -386Q643 -383 716 -200Q764 -78 767 175Q713
  75 639 25T468 -25Q287 -25 174 98T60 419Q60 689 215 854Q375 1024 651 1024Q744 1024 807 1000T903 928Q1010 925 1010 809Q1010 738 989 619Q966 481 962 431zM641 864Q451 864 347 733Q254 615 254 433Q254 288 309 215T474 142Q575 142 670 256Q756 361 768
  464Q789 572 813 803Q773 834 730 849T641 864z"/>
  
             <!-- "u" glyph -->
             <glyph unicode="u" glyph-name="u" horiz-adv-x="1065" d="M955 584Q955 512 956 368T957 152Q957 130 960 85T964 18Q964 -25 935 -52T864 -80Q787 -80 766 15Q641 -50 478 -50Q347 -50 261 8Q166 72 148 195Q109 460 109 667Q109 804 139 979Q153 1066 234 1066Q277
  1066 306 1039T335 968Q335 922 321 821T306 667Q306 500 317 381T350 190Q383 172 415 163T478 153Q612 153 761 196L760 399L758 593Q758 809 777 968Q788 1060 874 1060Q917 1060 946 1032T973 962L955 584z"/>
  
             <!-- "v" glyph -->
             <glyph unicode="v" glyph-name="v" horiz-adv-x="996" d="M600 52Q597 -40 509 -40Q436 -40 403 46L250 452L72 911Q62 937 62 957Q62 998 93 1027T165 1056Q225 1056 251 995L505 296Q580 456 694 760Q721 840 779 986Q810 1050 867 1050Q908 1050 939 1021T970
  952Q970 914 805 524L600 52z"/>
  
             <!-- "w" glyph -->
             <glyph unicode="w" glyph-name="w" horiz-adv-x="1401" d="M1336 895Q1258 569 1132 158Q1104 67 1039 -29Q1004 -82 944 -81Q835 -79 774 190Q754 276 733 424L700 647L618 456L466 43Q453 5 428 -15Q398 -73 332 -75Q256 -78 185 223Q149 378 113 643L89 793Q76
  883 76 944Q76 986 105 1013T177 1041Q253 1041 271 958Q284 899 292 812L307 665L366 216Q477 524 596 926Q629 1037 711 1037Q790 1037 818 913Q844 796 883 553Q923 301 954 160L1027 432L1156 977Q1171 1038 1242 1038Q1284 1038 1315 1010T1346 941Q1346 936
  1336 895z"/>
  
             <!-- "x" glyph -->
             <glyph unicode="x" glyph-name="x" horiz-adv-x="1209" d="M1058 858L912 721L734 544L1060 118Q1085 86 1085 55Q1085 16 1055 -14T987 -44Q949 -44 918 -7Q826 100 594 405L399 204Q340 151 227 39Q195 3 158 3Q120 3 91 33T61 102Q61 133 86 165Q114 202 173
  254Q242 315 264 338L477 561L346 750Q267 863 208 915Q170 949 170 989Q170 1029 198 1060T264 1091Q323 1091 442 937L615 698L811 878Q933 993 976 1058Q1008 1105 1052 1105Q1091 1105 1121 1076T1151 1009Q1151 954 1058 858z"/>
  
             <!-- "y" glyph -->
             <glyph unicode="y" glyph-name="y" horiz-adv-x="1066" d="M1011 892L665 144Q537 -129 469 -313L403 -507Q377 -579 313 -579Q271 -579 241 -552T210 -483Q210 -383 426 96L68 785L23 858Q-4 904 -4 935Q-4 976 27 1007T98 1038Q144 1038 169 1003Q339 767 534
  331L682 676Q762 855 836 984Q868 1040 920 1040Q961 1040 992 1011T1024 942Q1024 920 1011 892z"/>
  
             <!-- "z" glyph -->
             <glyph unicode="z" glyph-name="z" horiz-adv-x="1102" d="M964 809Q875 702 736 499Q575 263 500 165Q605 170 683 170Q722 170 799 155T915 140Q959 140 986 112T1014 39Q1014 -6 987 -34T915 -62Q876 -62 799 -47T683 -32Q458 -32 256 -73Q235 -77 219 -77Q122
  -77 122 8Q122 58 172 104Q433 340 740 839Q607 831 547 831Q399 831 243 854Q154 867 154 953Q154 997 181 1026T249 1056Q298 1056 397 1045T547 1033Q615 1033 751 1042T955 1052Q1040 1052 1040 982Q1040 901 964 809z"/>
  
             <hkern u1="u" g2="v" k="-200"/>
             <hkern u1="v" g2="w" k="-400"/>
             <hkern u1="w" g2="x" k="200"/>
             <hkern u1="x" g2="y" k="400"/>
             <hkern u1="y" g2="z" k="-1000"/>
  
             <hkern u1="U+0061-0063" u2="U+0064-0066" k="500"/>
  	     <hkern u1="U+006?" u2="U+007?" k="-1000"/>
  
             <vkern u1="u" u2="v" k="-200"/>
             <vkern u1="v" u2="w" k="-400"/>
             <vkern u1="w" u2="x" k="200"/>
             <vkern u1="x" u2="y" k="400"/>
             <vkern u1="y" u2="z" k="-1000"/>
  
             <vkern u1="U+0061-0063" u2="U+0064-0066" k="500"/>
  	     <vkern u1="U+006?" u2="U+007?" k="-1000"/>
  
             </font>
  
            </defs>
  
          <g id="test_content" font-size="25">
  
              <g id="horizontal" transform="translate(0,50)">
  
                  <text x="40" y="50" font-size="15">Horizontal Kerning</text>
  
                  <text x="40" y="100" font-family="SVGComic" fill="#6666FF">abcdefg</text>
                  <text x="40" y="125" font-family="SVGComicK" fill="#6666FF">abcdefg</text>
                  <text x="40" y="145" font-size="10">u1="U+0061-0063"</text>
                  <text x="40" y="155" font-size="10">u2="U+0064-0066" k="500"</text>
  
                  <text x="40" y="200" font-family="SVGComic" fill="red">uvwxyz</text>
                  <text x="40" y="225" font-family="SVGComicK" fill="red">uvwxyz</text>
                  <text x="40" y="245" font-size="10">u1="u" g2="v" k="-200"</text>
                  <text x="40" y="255" font-size="10">u1="v" g2="w" k="-400"</text>
                  <text x="40" y="265" font-size="10">u1="w" g2="x" k="200"</text>
                  <text x="40" y="275" font-size="10">u1="x" g2="y" k="400"</text>
                  <text x="40" y="285" font-size="10">u1="y" g2="z" k="-1000"</text>
  
                  <text x="40" y="330" font-family="SVGComic" fill="green">abcxyz</text>
                  <text x="40" y="355" font-family="SVGComicK" fill="green">abcxyz</text>
                  <text x="40" y="375" font-size="10">u1="U+006?" u2="U+007?" k="-1000"</text>
              </g>
  
              <g id="vertical">
  
                 <text x="260" y="100" font-size="15">Vertical Kerning</text>
  
                 <text x="260" y="130" glyph-orientation-vertical="auto" writing-mode="tb" font-family="SVGComic" fill="#6666FF">abcdefg</text>
                 <text x="285" y="130" glyph-orientation-vertical="auto" writing-mode="tb" font-family="SVGComicK" fill="#6666FF">abcdefg</text>
             
                 <text x="260" y="300" glyph-orientation-vertical="0" writing-mode="tb" font-family="SVGComic" fill="#6666FF">abcdefg</text>
                 <text x="280" y="300" glyph-orientation-vertical="0" writing-mode="tb" font-family="SVGComicK" fill="#6666FF">abcdefg</text>
  
                 <text x="340" y="130" glyph-orientation-vertical="0" writing-mode="tb" font-family="SVGComic" fill="red">uvwxyz</text>
                 <text x="360" y="130" glyph-orientation-vertical="0" writing-mode="tb" font-family="SVGComicK" fill="red">uvwxyz</text>
        
                 <text x="340" y="300" glyph-orientation-vertical="180" writing-mode="tb" font-family="SVGComic" fill="green">abcxyz</text>
                 <text x="360" y="300" glyph-orientation-vertical="180" writing-mode="tb" font-family="SVGComicK" fill="green">abcxyz</text>
  
              </g>
         
          </g>
  
      </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
  
  </svg>
  
  
  
  1.1                  xml-batik/samples/tests/smallFonts.svg
  
  Index: smallFonts.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Tests small font sizes (<1) with various text features.                    -->
  <!-- This is basically a copy of the textFeatures test file with a small       -->
  <!-- viewbox set.                                                               -->
  <!--                                                                           -->
  <!-- @author bella.robinson@cmis.csiro.au                                     -->
  <!-- @version $Id: smallFonts.svg,v 1.1 2001/06/13 00:13:20 bella Exp $                                                             -->
  <!-- ========================================================================= -->
  <?xml-stylesheet type="text/css" href="test.css" ?>
  <svg width="450" height="500" viewBox="0 0 9 10">
      <!-- ============================================================= -->
      <!-- Test content                                                  -->
      <!-- ============================================================= -->
  
      <defs>
          <filter id="blur" filterUnits="userSpaceOnUse" x="0" y="-1.6" width="4" height="2" filterRes="200">
              <feGaussianBlur stdDeviation="0.04 0.04" x="0" y="-1.6" width="4" height="2"/> 
          </filter> 
  
          <path id="Path1" style="fill:none; stroke:green; stroke-width:5" transform="scale(0.003,0.003)"
                    d="M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100"/>
         
      </defs>
  
      <g id="testContent" stroke-width="0.01">
  
          <text  x="50%" y="10%" font-size="0.3" text-anchor="middle" >
              Small font size test (viewBox="0 0 9 10")</text>
  
        <g font-family="dialog" font-size="0.3" 
                    text-anchor="start" fill="MidnightBlue">
          <text x="10%" y="20%">
          Text can change 
          <tspan font-size="0.6">size,</tspan>
          <tspan font-size="0.4" font-family="Serif">typeface,</tspan> 
          <tspan fill="green">color,</tspan>
          or 
          <tspan fill="none" font-style="oblique" stroke="red" stroke-width="0.02">style</tspan>
          </text>
  
          <text fill="MidnightBlue" x="10%" y="24%"> 
          within a single text element.
          </text> 
  
          <text x="10%" y="32%">Styling features include 
              <tspan font-weight="bold">weight,</tspan> 
              <tspan font-style="oblique">posture,</tspan> and 
              <tspan font-family="serif">typeface.</tspan>
          </text>
  
          <rect x="10%" y="35%" width="45%" height="10%" fill="DodgerBlue"/>
          <text x="10%" y="40%">
          Graphics attributes such as 
              <tspan fill="red" opacity="0.3">opacity</tspan> can be applied.
          </text>
  
          <text x="10%" y="50%">"text decoration" can include 
              <tspan text-decoration="underline">underline,</tspan>
              <tspan text-decoration="overline">overline,</tspan> and
          </text> 
  
          <text x="10%" y="54%">
          <tspan text-decoration="line-through">strikethrough. </tspan>
          <tspan dx="0.1" baseline-shift="super" font-size="0.2">Super</tspan> and
          <tspan baseline-shift="sub" font-size="0.2">sub</tspan> scripts are available. 
          </text>
  
          <text x="10%" y="62%" stroke-linecap="round" stroke-linejoin="round">
              Various 
              <tspan stroke="red" fill="none" stroke-width="0.01">outline
              </tspan>styles, 
              <tspan stroke="red" stroke-width="0.01" fill="blue" >fill colors
              </tspan>and
              <tspan stroke="red" stroke-width="0.02" fill="blue" >thicknesses
              </tspan>can be
          </text>
  
          <text x="10%" y="66%">used, and the outline stroke can be 
              <tspan stroke="black" fill="none" stroke-width="0.01" 
                 stroke-linecap="round" stroke-linejoin="round">rounded</tspan>
              or 
              <tspan stroke="black" fill="none" stroke-width="0.01" 
                 stroke-linecap="square" stroke-linejoin="miter">mitered.</tspan>
          </text>
  
          <text x="10%" y="75%">Text elements also can be filtered, transformed
          <tspan x="10%" y="79%">and placed on a path.</tspan></text>
  
         <g font-size="0.8" transform="translate(1.5, 9)">  
          <text x="0" y="0" filter="url(#blur)" fill="black" opacity="0.7"
                  transform="skewX(40) translate(-0.12,-0.12)">
              Shadow
            </text>
            <text x="0" y="0" stroke="black" stroke-width="0.01" fill="white">
              Shadow
            </text>
          </g>
  
  	  <g transform="translate(5,8)">
              <use xlink:href="#Path1"/>
  	      <text font-size="0.3" style="text-anchor:start">
                  <textPath xlink:href="#Path1" startOffset="0%">Small text <tspan fill="red" dy="-0.1">on</tspan><tspan dy="0.1"> a Path</tspan></textPath>
              </text>
           </g>
  
        </g>
      </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use transform="scale(0.02, 0.02)" xlink:href="../batikLogo.svg#Batik_Tag_Box" />
      
  </svg>
  
  
  
  1.1                  xml-batik/samples/tests/textOnPathSpaces.svg
  
  Index: textOnPathSpaces.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Tests various text on a path                                              -->
  <!--                                                                           -->
  <!-- @author bella.robinson@cmis.csiro.au                                      -->
  <!-- @version $Id: textOnPathSpaces.svg,v 1.1 2001/06/13 00:13:20 bella Exp $        -->
  <!-- ========================================================================= -->
  <?xml-stylesheet type="text/css" href="test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500">
  <title>Text on a path with spaces test</title>
  
      <style type="text/css"><![CDATA[
          
      ]]></style>
  
      <g id="content">
  
          <text class="title" x="50%" y="40">Text on a path with adjusted spacing</text>
  
          <defs>
  	      <path id="Path1" style="fill:none; stroke:blue;" transform="scale(0.15,0.15)"
                    d="M 100 200 C 200 100 300 0 400 100 C 500 200 600 300 700 200 C 800 100 900 100 900 100"/>
              <path id="Path2" style="fill:none; stroke:blue;" transform="scale(0.30,0.50)"
                    d="M 100 100 C100 0 400 00 400 100"/>
  
          </defs>
  
  
          <g transform="translate(0,70)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1"><tspan>sample</tspan></textPath>
              </text>
  		<text font-size="10" x="35" y="60">default spacing</text>
           </g>
  
  	  <g transform="translate(150,70)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1"><tspan x="10,30,50,75,95,110" y="110">sample</tspan></textPath>
              </text>
              <text font-size="10" x="15" y="60">tspan x="10,30,50,75,95,110"</text>
              <text font-size="10" x="35" y="70">y="110"</text>
           </g>
          
           <g transform="translate(300,70)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1"><tspan dx="0,10,10,10,10,10">sample</tspan></textPath>
              </text>
  		<text font-size="10" x="15" y="60">tspan dx="0,10,10,10,10,10"</text>
           </g>
  
  
           <g transform="translate(0,160)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20" x="100" y="300">
                  <textPath xlink:href="#Path1" textLength="140">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="140"</text>
           </g>
  
  
           <g transform="translate(150,160)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20" x="100" y="300">
                  <textPath xlink:href="#Path1" textLength="70">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="70"</text>
           </g>
  
           <g transform="translate(300,160)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20" x="100" y="300">
                  <textPath xlink:href="#Path1" kerning="10">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">kerning="10"</text>
           </g>
  
  
          <g transform="translate(0,250)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" textLength="140" lengthAdjust="spacingAndGlyphs">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="140"</text>
              <text font-size="10" x="35" y="70">lengthAdjust=</text>
              <text font-size="10" x="35" y="80">"spacingAndGlyphs"</text>
           </g>
  
           <g transform="translate(150,250)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" textLength="50" lengthAdjust="spacingAndGlyphs">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="50"</text>
              <text font-size="10" x="35" y="70">lengthAdjust=</text>
              <text font-size="10" x="35" y="80">"spacingAndGlyphs"</text>
           </g>
  
            <g transform="translate(300,250)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" textLength="140" lengthAdjust="spacingAndGlyphs" kerning="10">sample</textPath>
              </text>
              <text font-size="10" x="5" y="60">textLength="140", kerning="10"</text>
              <text font-size="10" x="5" y="70">lengthAdjust=</text>
              <text font-size="10" x="5" y="80">"spacingAndGlyphs"</text>
           </g>
         
           <g transform="translate(0,350)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" letter-spacing="-3">sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">letter-spacing="-3"</text>
           </g>
  
           <g transform="translate(150,350)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" textLength="140" word-spacing="2em">sample sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="140"</text>
              <text font-size="10" x="35" y="70">word-spacing="2em"</text>
           </g>
  
            <g transform="translate(300,350)">
              <use xlink:href="#Path1" style="fill:none; stroke:blue; stroke-width:2"/>
  	      <text font-size="20">
                  <textPath xlink:href="#Path1" textLength="140" lengthAdjust="spacingAndGlyphs" word-spacing="-5">sample sample</textPath>
              </text>
              <text font-size="10" x="35" y="60">textLength="140"</text>
              <text font-size="10" x="35" y="70">word-spacing="-5"</text>
              <text font-size="10" x="35" y="80">lengthAdjust=</text>
              <text font-size="10" x="35" y="90">"spacingAndGlyphs"</text>
           </g>
  
  
  
  
  
      </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
  
  </svg>
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org