You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svg-fonts.fo 2.9KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" standalone="no"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  3. <fo:layout-master-set>
  4. <fo:simple-page-master master-name="page">
  5. <fo:region-body />
  6. </fo:simple-page-master>
  7. </fo:layout-master-set>
  8. <fo:page-sequence master-reference="page">
  9. <fo:flow flow-name="xsl-region-body">
  10. <fo:block>
  11. <fo:instream-foreign-object>
  12. <svg:svg width="250" height="50">
  13. <svg:font horiz-adv-x="1000">
  14. <svg:font-face font-family="Missing" units-per-em="1000" underline-position="-100"
  15. underline-thickness="50" />
  16. <svg:glyph unicode="A" horiz-adv-x="686" d="M162,186l362,0l78,-186l84,0l-308,708l-70,0l-308,-708l84,0M343,624l153,-372l-307,0z" />
  17. <svg:glyph unicode="C" horiz-adv-x="704" d="M620,154C567,72 491,48 417,48C235,48 126,191 126,354C126,517 235,660 417,660C492,660 571,613 599,567l63,47C600,693 505,726 417,726C206,726 48,569 48,354C48,139 206,-18 417,-18C534,-18 632,39 679,112z" />
  18. <svg:glyph unicode="F" horiz-adv-x="556" d="M168,335l330,0l0,66l-330,0l0,241l355,0l0,66l-427,0l0,-708l72,0z" />
  19. <svg:glyph unicode="G" horiz-adv-x="778" d="M673,631C610,694 529,726 417,726C206,726 48,569 48,354C48,139 206,-18 417,-18C503,-18 606,7 685,54l0,347l-241,0l0,-66l169,0l0,-237C560,68 490,48 417,48C235,48 126,191 126,354C126,517 235,660 417,660C504,660 571,629 619,578z" />
  20. </svg:font>
  21. <svg:font horiz-adv-x="1000">
  22. <!-- this is not Helvetica but it is here to increase coverage and show the code takes expected path -->
  23. <svg:font-face font-family="Helvetica" units-per-em="1000" underline-position="-100"
  24. underline-thickness="50" />
  25. <svg:glyph unicode="A" horiz-adv-x="686" d="M162,186l362,0l78,-186l84,0l-308,708l-70,0l-308,-708l84,0M343,624l153,-372l-307,0z" />
  26. <svg:glyph unicode="C" horiz-adv-x="704" d="M620,154C567,72 491,48 417,48C235,48 126,191 126,354C126,517 235,660 417,660C492,660 571,613 599,567l63,47C600,693 505,726 417,726C206,726 48,569 48,354C48,139 206,-18 417,-18C534,-18 632,39 679,112z" />
  27. <svg:glyph unicode="F" horiz-adv-x="556" d="M168,335l330,0l0,66l-330,0l0,241l355,0l0,66l-427,0l0,-708l72,0z" />
  28. <svg:glyph unicode="G" horiz-adv-x="778" d="M673,631C610,694 529,726 417,726C206,726 48,569 48,354C48,139 206,-18 417,-18C503,-18 606,7 685,54l0,347l-241,0l0,-66l169,0l0,-237C560,68 490,48 417,48C235,48 126,191 126,354C126,517 235,660 417,660C504,660 571,629 619,578z" />
  29. </svg:font>
  30. <svg:text x="20" y="20" font-family="Missing" font-size="12">ACFG</svg:text>
  31. <svg:text x="20" y="40" font-family="Helvetica" font-size="12">ACFG</svg:text>
  32. </svg:svg>
  33. </fo:instream-foreign-object>
  34. </fo:block>
  35. </fo:flow>
  36. </fo:page-sequence>
  37. </fo:root>