Search code examples
pdfxsl-fo

Arial Unicode Ms is not working in xsl-fo for ballot box


Ballot box is not appearing in the printed pdf if the system doesn't contain Arial unicode MS font.

<fo:inline font-family="arial unicode ms"> ☐ </fo:inline>

Is there any other alternate way to show ballot box in xsl-fo?


Solution

  • There are several ways to approach this:

    1. find another font that contains this symbol. There are websites where you can check this, and if all else fails you can use Character Map->Advanced view->Search for: enter image description here
      1. Place Arial Unicode MS in the directory that contains the XML and stylesheet.
      2. Use SVG to draw a rectangle instead of relying on a font.