Overview
Some special fonts like CUHK (https://www.cuhk.edu.hk/cusis/cuhkfont.html), that are not part of basic Windows font collection might not render correctly. This article describes how to add special fonts, so they work in M-Files Desktop and in M-Files Web.
NOTE 1. This article refers to resources that are not owned or associated with M-Files, so we bear no responsibility for their accuracy and availability, and following them is at the reader's own risk.
NOTE 2. This article applies to a specific custom font package and we can't guarantee it is suitable for other purposes or fonts.
Impacted Products and Versions
- Windows 10.
- M-Files version 21.x and later.
Symptoms
Special fonts are shown incorrectly. Example below.
Whereas the correct example is:
Cause and Reason
There are three reasons why the font does not show correctly:
- Windows does not have the font file.
- Windows default font has not been set to use the special font.
- Browser default font has not been set to use the special font.
Solution
Here are the instructions to get custom fonts to work in Desktop and in Web interface. These instructions must be followed precisely to make them work. The example font we are using is CUHK, a custom Chinese font. You can get the font file from here:
https://www.cuhk.edu.hk/cusis/cuhkfont/cuhkfont.zip
1. Copy font file Cuhkfont.tte to Windows > Fonts (Windows will install the font).
2. Create C:\CUHKFONT folder.
3. Copy the font file Cuhkfont.tte to the folder.
4. Download and run Cuhkcfg.reg. https://www.cuhk.edu.hk/cusis/login/cuhkcfg.zip
5. Change the Browser(s) default fonts with these instructions:
https://www.cuhk.edu.hk/cusis/cuhkfont.html
6. Change system default font with these instructions:
https://www.intowindows.com/how-to-change-the-default-font-in-windows-10/
7. Restart the computer.
