HGE uses free type for Chinese output

Source: Internet
Author: User

HGEUseFree typeImplement Chinese output

Previously, I saw in the irrlicht forum that Japanese people used the free Type Library in the irrlicht engine, enabling the engine to support multi-byte text output. But he modified the engine, and then I modified his code so that it can be directly used without modifying the engine code.

Considering that HGE may be used for outsourcing in a period of time, this code is greatly modified and combined into HGE. That is to say, now we can use the free Type Library in HGE for Chinese output.

Efficiency must be higher than outputting Chinese characters directly using GDI (that is, using DX font. However, if you use GDI to create an HGE texture and then render the texture, the efficiency is similar to the method here. Because the core principle of the two methods is to create a font texture.

:

Download the relevant code. You can use this code directly, but keep the author's information:

Http://blog.blogwhy.com/azjex/upload/hgefreetypesample.rar

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.