Using lists in prawn

后端 未结 7 1031
深忆病人
深忆病人 2021-02-13 15:53

Im using prawn to create pdfs that contain much data in table format and some lists. The problem with the lists is that Im just using text as lists because there is no semantic

7条回答
  •  无人共我
    2021-02-13 16:03

    To create a bullet with Adobe's built in font, use \u2022.

    \u2022 This will be the first bullet item
    \u2022 blah blah blah
    

    Prawn supports symbols (aka glyphs) with WinAnsi codes and these must be encoded as UTF-8. See this post for more details: https://groups.google.com/forum/#!topic/prawn-ruby/axynpwaqK1g

    The Prawn manual has a complete list of the glyphs that are supported.

提交回复
热议问题