简体   繁体   中英

Square Bullet in XSL-FO

I am attempting to create a list in XSL-FO using a square bracket. I have been able to get it working using the standard unicode bullet character ( • ) but I just can't seem to get it working for square brackets.

I have tried using ■ , but that does not seem to work. It is important that i can get the square bullets working because I am matching an existing file format.Any help in getting this working would be greatly appreciated.

         <fo:list-item-label end-indent="label-end()">
          <fo:block>&#x2022;</fo:block>
        </fo:list-item-label>

Hi i have tried this with my own XSL-FO code and RenderX XEP 4.x and it appears to be a font glyph issue. When I use a font such as the WGL version of Times New Roman it appears correctly as a square bracket, but when I use the built in Helvetica font it doesn't as it doesn't have a glyph which supports it (• works fine).

If you don't want to go to the expense of purchasing a new font I would suggest using a gif to simulate the square bracket.

您使用的字体中是否包含此字符?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM