Text Replacement

Replacements allow the content of the layer being replaced with a different content.

The Text Replacement window allows you to configure a text layer to render its content as real text (all text layers render as images in Kwik).

Important: It is a common mistake to believe that text rendering is faster and uses less memory than images. This Corona Labs posting alerts about it.

While using this option, be careful because text renders differently in different platforms (check this posting to learn a bit more about how text from Photoshop works with Corona code: http://www.kwiksher.com/how-to/understanding-the-sync-feature/). Also, you do not have at this moment the ability to configure justification, and other text related parametrization, as Corona does not offer this possibility yet. It is always a good idea to test the final project in the destination device. Select the layer you want to add the Text feature and click the Text replacement. The following window appears:

When enabled, the Use native system font (do not import external font files) checkbox will use the device’s default font, instead the original font used in Photoshop. The benefit of doing that is the fact you will not need to worry importing and testing the original font in the devices. If disabled, Kwik will ask for the font file when publishing (it will be copied and attached to the final build folder).

External fonts may require some manual input. For more info, read the How to Use Custom Fonts from Corona documentation. Important: you must have the rights to use an external font. Kwiksher is not responsible for any font used in your projects.

As the layer content will be exported as real text and devices work with different font settings, it may be a good idea to add some vertical and horizontal offset (space in pixels around the text). You should use the Simulator and your device to figure out the best offset.

The Height padding field allows you to adjust the vertical position of the text, when needed.