C + + uses Uniscribe for word wrap calculation and rendering

Source: Internet
Author: User
Tags word wrap

Uniscribe is a library that exists in WINAPI since Windows 2000. This library can provide us with a lot of information about string rendering, such as where to change the line, what the order of characters should look like when rendering, and what the size of each character is. Information about Uniscribe can be seen in http://msdn.microsoft.com/en-us/library/windows/desktop/dd374091 (v=vs.85). aspx.

Before using Uniscribe, let's take a look at what we can do with Uniscribe:

This column more highlights: http://www.bianceng.cn/Programming/cplus/

With Uniscribe, we can get all the data we need to mix the strings of different sizes together, and we can even change the lines in beautiful places, such as:

Related Article

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.