[英]Square Bullet in XSL-FO
I am attempting to create a list in XSL-FO using a square bracket. 我正在尝试使用方括号在XSL-FO中创建列表。 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. 我已经能够使用标准的Unicode子弹字符(
•
)使它正常工作,但是我似乎无法使它适用于方括号。
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>•</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. 嗨,我用我自己的XSL-FO代码和RenderX XEP 4.x尝试了此操作,它似乎是一个字形问题。 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).
当我使用诸如Times New Roman的WGL版本的字体时,它正确显示为方括号,但是当我使用内置的Helvetica字体时,它却没有,因为它没有支持它的字形(•工作正常)。
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. 如果您不想花很多钱购买新字体,建议您使用gif模拟方括号。
您使用的字体中是否包含此字符?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.