Segoe MDL2 Assets

Source: Internet
Author: User

App Download Address: HTTPS://WWW.MICROSOFT.COM/STORE/APPS/9NBLGGH5K2HF

When I recently used the text icon Segoe MDL2 assets, using the character map, it was really small, it was not clear, and it didn't support rolling browsing, and it was inconvenient to write a browser tool.

Let's take a look at the following character mapping table:

Then look at the kind of tool I wrote:

It's so big, it's not so hard to see clearly, and "Double click" allows you to add interesting graphics ~ ~ ~

One of the good things about the program is that you can develop the tools you want, without having to search the Internet, and the results are often unsatisfactory, not being rogue, or poisoned, or functionally limited.

Well, here's the production process:

1. Get all the characters in the word.

In the UWP, I don't know how to get it, but in WPF, the access to the word is simple.

WPF codes:

New FontFamily ("Segoe MDL2 Assets"); foreach inch font. Gettypefaces ()) {        typeface. Trygetglyphtypeface (out  glyph);         if NULL The key in         {            //  plyph is the Fudai code in the character mapping table.         }}

Copy of this blog: Http://www.codeproject.com/Articles/396811/Character-Map-in-WPF

2. Designators all the words into a txt.

3. Then use WIN10 to read txt.

Because we get the code of the character, such as: 0xe001.

When setting the text, it is not possible to give "E001" directly, but to make this 0xe001 a string. (The character value is 0xe001, such as the value of A is 0x41).

Password:

unchecked {    ushort assetdata = 0xe001;     char temptext = (char) assetdata;     string txt = temptext.tostring ();}

Note In XAML, when you write directly:

<textblock text="& #xE001; " fontfamily="Segoe MDL2 Assets" />

Is the same as in the code.

Enjoy your coding.

[END]

Segoe MDL2 Assets

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.