<i id='13h6H'><tr id='13h6H'><dt id='13h6H'><q id='13h6H'><span id='13h6H'><b id='13h6H'><form id='13h6H'><ins id='13h6H'></ins><ul id='13h6H'></ul><sub id='13h6H'></sub></form><legend id='13h6H'></legend><bdo id='13h6H'><pre id='13h6H'><center id='13h6H'></center></pre></bdo></b><th id='13h6H'></th></span></q></dt></tr></i><div id='13h6H'><tfoot id='13h6H'></tfoot><dl id='13h6H'><fieldset id='13h6H'></fieldset></dl></div>
        <bdo id='13h6H'></bdo><ul id='13h6H'></ul>

    1. <legend id='13h6H'><style id='13h6H'><dir id='13h6H'><q id='13h6H'></q></dir></style></legend>

      <small id='13h6H'></small><noframes id='13h6H'>

    2. <tfoot id='13h6H'></tfoot>

      库GDX .绘制多行文本

      时间:2023-05-19
        <tfoot id='LvbdE'></tfoot>

        <legend id='LvbdE'><style id='LvbdE'><dir id='LvbdE'><q id='LvbdE'></q></dir></style></legend>
      • <i id='LvbdE'><tr id='LvbdE'><dt id='LvbdE'><q id='LvbdE'><span id='LvbdE'><b id='LvbdE'><form id='LvbdE'><ins id='LvbdE'></ins><ul id='LvbdE'></ul><sub id='LvbdE'></sub></form><legend id='LvbdE'></legend><bdo id='LvbdE'><pre id='LvbdE'><center id='LvbdE'></center></pre></bdo></b><th id='LvbdE'></th></span></q></dt></tr></i><div id='LvbdE'><tfoot id='LvbdE'></tfoot><dl id='LvbdE'><fieldset id='LvbdE'></fieldset></dl></div>

                <tbody id='LvbdE'></tbody>
            • <small id='LvbdE'></small><noframes id='LvbdE'>

                <bdo id='LvbdE'></bdo><ul id='LvbdE'></ul>
              • 本文介绍了库GDX .绘制多行文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                I am trying to write a big text using BitmapFont in libGDX . But it shows on one line and the user can see only the first part of the text . How can I make that bitmapFont made new line automatically and show whole text on the screen ?

                解决方案

                Either use for manual new lines and render the font via font.drawMultiLine(...).

                Or use font.drawWrapped(...) with a wrap width to let libgdx wrap it automatically (manually added are still supported).

                Update:
                With libGDX 1.6 the draw methods were enhanced, and there is no further need for drawMultiLine and drawWrapped, so those were removed. Draw methods can handle multiple lines and a new boolean wrap parameter was introduced.

                这篇关于库GDX .绘制多行文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:LibGDX 画线 下一篇:无法将 gdx-tools 添加到 libgdx gradle 项目

                相关文章

                最新文章

              • <small id='C6mC3'></small><noframes id='C6mC3'>

                <tfoot id='C6mC3'></tfoot>
                  <bdo id='C6mC3'></bdo><ul id='C6mC3'></ul>
                1. <legend id='C6mC3'><style id='C6mC3'><dir id='C6mC3'><q id='C6mC3'></q></dir></style></legend>

                  <i id='C6mC3'><tr id='C6mC3'><dt id='C6mC3'><q id='C6mC3'><span id='C6mC3'><b id='C6mC3'><form id='C6mC3'><ins id='C6mC3'></ins><ul id='C6mC3'></ul><sub id='C6mC3'></sub></form><legend id='C6mC3'></legend><bdo id='C6mC3'><pre id='C6mC3'><center id='C6mC3'></center></pre></bdo></b><th id='C6mC3'></th></span></q></dt></tr></i><div id='C6mC3'><tfoot id='C6mC3'></tfoot><dl id='C6mC3'><fieldset id='C6mC3'></fieldset></dl></div>