IMDTouchKnowledge BaseShop main store

Troubleshooting

Chinese fonts show blank blocks on an HMI panel: causes and fix

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Blank rectangles on the panel mean the panel firmware has no glyph for that character; a font missing from the editor's configured font list means Windows never offered it. Install East Asian language support on the engineering PC, mark Chinese as a runtime language, restart the editor, and set panel text in a family the panel carries — nothing transfers a new TrueType font to this generation.

A black touch operator panel with a dark screen and an amber status light, its supply plug lying unconnected beside a test meter
On this page
  1. Two symptoms, two separate causes
  2. Why a downloaded font never reaches the editor's list
  3. Why a listed Chinese font draws blank blocks on the panel
  4. The fix, in order
  5. Verify the fix on the bench
  6. The decision for each case
  7. Questions asked

Chinese text that draws as empty rectangles on the panel is not a corrupt project — it is the panel reporting that its fixed font table holds no glyph for those characters in the family you selected. A downloaded .ttf that never appears in the editor's Configured Font Family list is the other half of the same story: the font never reached the Windows mechanism the editor builds that list from. Both faults are fixed on the engineering PC, then closed with one commitment: install East Asian language support, mark Chinese as a runtime language, restart the editor, and set the panel text in a font family the panel firmware actually carries. Nothing in the WinCC flexible 2005 workflow moves a new TrueType font onto the panel.

Two symptoms, two separate causes #

Both failures show up together on projects like this, and they have different roots:

  • Missing from the list. A .ttf file installed on the engineering PC, visible in the Windows Fonts folder and in other applications, never shows up in the editor's font-family selection.
  • Listed but blank on the panel. A Chinese family such as KaiTi_GB2312 or FangSong_GB2312 selects normally in the project, yet every Chinese character on the panel screen draws as an empty rectangle.

The first failure lives on the engineering PC. The editor builds its font list from the Windows GDI registry when it starts, and GDI offers a family only when the operating system supports the code page that family claims. The second lives in the panel. The editor will assign any family Windows offers it, but the panel draws each character from the rasterized set its firmware carries, and a family or code point it does not hold comes out as the missing-glyph rectangle. Chinese text survives transfer only when both halves are true at once.

One look-alike to rule out first: if the selection offers a single family and nothing besides it, the panel is restricting the list itself. That is the separate fault described in why WinCC flexible shows only Tahoma in a panel project.

Why a downloaded font never reaches the editor's list #

WinCC flexible 2005 is a 32-bit editor that enumerates fonts through Windows GDI, and GDI advertises a family only when the code page it claims is installed in the operating system. Chinese GB2312 and GBK text maps to Windows code page 936, so on a Western-locale Windows without the East Asian language files, the font files simkai.ttf and simfang.ttf can be physically present in the Fonts folder (%WINDIR%\Fonts) while GDI stays silent about the families they provide. The folder listing and the editor list measure different things, which is why a folder full of font files still leaves the selection short.

The check takes ten seconds: double-click the .ttf in the Fonts folder. A preview that draws real characters means the code page support is present. Boxes or question marks in the preview mean the support files are missing — the problem is the operating system, not the font file.

The remedy is the East Asian language support install. On an XP-era engineering station, enable the East Asian language files under Regional and Language Options in Control Panel and supply the Windows media when asked. On Windows 10, add the Chinese families as supplemental fonts from the Settings app under Time & language. Restart the PC, then restart the editor and reopen the project. The GB2312 families, including KaiTi_GB2312 and FangSong_GB2312, now appear in Configured Font Family on an English Windows as well; a Chinese-localized operating system is one way to have those files present, not a requirement.

Two side conditions still hide entries. A family registered for a single Windows account can stay invisible to a 32-bit editor — install it for all users, the same trap covered in why your HMI software reports a missing installed font. And a listed family changes nothing at runtime until the project itself carries the language, which is the runtime-language mark of the fix list below.

Why a listed Chinese font draws blank blocks on the panel #

A place in the editor's list proves nothing about the panel. The MP370's firmware comes with a fixed factory font table, rasterized before the panel left the factory, and at runtime the panel looks each character up in that table alone. The editor cannot see that table: it assigns KaiTi_GB2312 to any text object because from the PC side the family exists. No step in the WinCC flexible 2005 workflow downloads a font to the panel at transfer — downloading your own fonts is a feature of later generations such as WinCC Unified, which documents its own procedure for it. Listed but blank is therefore an exact diagnosis: the PC enumerates the family, the panel does not rasterize it.

Worked example — why the table is fixed (illustrative arithmetic, not a panel specification). GB2312-80, the Chinese national character-set standard, defines 7445 glyphs: 6763 Chinese characters plus 682 symbols. Rasterize one size of one weight at 1 bit per pixel, monochrome, 16×16: each glyph then costs 16 × 16 = 256 pixels, or 256 / 8 = 32 bytes. For the 6763 characters that is 6763 × 32 B = 216,416 B, about 211 KB.

Add a second size at 24×24 pixels: 24 × 24 = 576 pixels = 72 bytes per glyph, and 6763 × 72 B = 486,936 B, about 475 KB. One family in two sizes is 216,416 + 486,936 = 703,352 B, roughly 687 KB, before a single Latin character is stored, and every further size or weight multiplies it again. That is the economics behind the fixed table: the firmware carries a chosen set, and a family outside the set has no bytes to draw with.

The fix, in order #

  1. Confirm the family on the PC: open the Windows Fonts folder, double-click the .ttf, and check that the preview draws the actual characters.
  2. If it does not, run the East Asian language install for your Windows version, as described above, and restart the PC.
  3. Install any project .ttf for all users, restart the editor, and confirm the family is listed.
  4. Open Project > Device Settings, open the Languages and Fonts tab, and mark Chinese (People's Republic of China) as a runtime language, exactly as the vendor's support entry on configuring Asian fonts in WinCC flexible prescribes.
  5. Set every Chinese text object to a family the panel firmware rasterizes, and keep the whole project inside that set.
  6. Transfer from a stopped machine state — the download replaces the running project — then read the strings on the panel screen itself.

Verify the fix on the bench #

Judge the result at the panel, not on the PC. After the transfer, open the screen that carries the longest Chinese string in the project and confirm that every character draws. A family that covers only part of GB2312 blanks exactly the characters it omits, and those are precisely the characters an operator cannot work around.

One documented trap re-blanks the list months later: installing, repairing or uninstalling WinCC flexible 2007 or 2008 alongside STEP 7 Basic V10.5 can remove fonts that GDI had registered, as the vendor's support note on that subject records. The recovery is the same install run again — East Asian language files first, then any project .ttf — followed by a PC restart and an editor restart.

If what looks wrong after a transfer is the size of the text on a different engineering PC, while the characters themselves draw, that is Windows display scaling rather than the panel. Why WinCC flexible 2008 fonts look oversized on another PC walks through that fault.

The decision for each case #

  • Listed but blank on the panel: the PC is fine and the selection is wrong. Move every Chinese text object into a family the panel firmware rasterizes and re-transfer. No editor setting makes this generation of panel carry a new font, so the family choice is the whole fix.
  • Missing from Configured Font Family: the project is fine and the PC is wrong. East Asian language support on, the font installed for all users, PC restarted, editor restarted — the family then stays listed across editor restarts, and with Chinese marked as a runtime language it works end to end.

A Chinese string reaches the panel only when both halves pass: GDI offers the family on the engineering PC, and the firmware table rasterizes it on the panel. Fix the half that fails, and test the pair together.

Questions asked

Do I need a Chinese edition of Windows or of the editor to use KaiTi_GB2312?

Neither. The standard English editor lists the GB2312 families once East Asian language support is installed on the engineering PC and the editor has been restarted; a Chinese-localized Windows is only one way to have those support files present. What puts Chinese on the panel is the runtime-language mark in the project's device settings, not the language of the editor or of Windows.

Is KaiTi_GB2312 the same thing as simkai.ttf?

One is the family name, the other is the file behind it. simkai.ttf is the TrueType file that provides KaiTi_GB2312, and simfang.ttf provides FangSong_GB2312. The file must be registered with Windows for the family to reach the editor's list, and the panel must carry rasterized glyphs for the family to draw anything besides rectangles at runtime.

How many characters does GB2312 define?

GB2312-80 defines 7445 glyphs: 3755 first-level Chinese characters, 3008 second-level characters and 682 symbols. The first level holds the characters in daily use; the second level is where a partially covered font most often surprises a project. Test the panel with strings that reach into both levels before signing off.

Why does the editor picture show the characters but the panel shows blocks?

The editor's picture is drawn with the fonts registered on the engineering PC, so a correct preview proves only that the PC half of the chain works. The panel draws at runtime from its own fixed font table, which the preview cannot reach. Only the panel screen, read after a real transfer, proves both halves together.

Keep reading

  • Explainer

    Why WinCC flexible shows only Tahoma in a panel project

    A WinCC flexible panel project offers only the fonts its panel firmware can render, and the default language family is why Tahoma is the one face you see. The language-and-font editor exposes two additional language families that change character coverage; fonts installed on the engineering PC never reach the panel. Boxes or blanks mean missing glyphs, so switch the family rather than the size.

    HMI and touchscreens

  • Troubleshooting

    Why Korean Text Fails to Display on a Comfort Panel

    Add Korean as a project language and enable it in the panel's runtime settings first. Then place one fixed Korean text in a system control such as a trend or alarm view: if that text still shows boxes, the fault is the font on the panel, not the language settings and not Windows CE.

    HMI and touchscreens

  • Comparison

    Which stream format lets an HMI panel show an IP camera view

    An HMI panel shows an IP camera only when the camera's output matches a display object the runtime can render. The cyclically refreshed JPEG snapshot URL is the lowest-risk match; MJPEG and RTSP with H.264 work only where the runtime documents a camera or media object with those codecs; a proprietary SDK control needs an open Windows runtime. On Comfort Panels the documented object is the Camera view object with MJPEG, H.264 or MPEG4.

    HMI and touchscreens

Selecting a Rear-Panel Mount HMI for Machine Fascia Installation