question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with Chinese/Japanese text

See original GitHub issue

internationalÏñŧĕŕŋāţלגזסכײת 日本語Вџссибجرطف中文Ηελενιγ the string above is correctly rendered on all programs on the machine but not in avalonia. Only the Japanese and Chinese characterd render as ractangles. The chinise fonts are installed on my system. MAybse someone has an idea on how to fix this? Currently using Avalonia 9.2 with NET 4.7.2 on Windows.

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
        x:Class="FontFamilyTest.MainWindow"
        Title="FontFamilyTest"
        >
  internationalÏñŧĕŕŋāţלגזסכײת 日本語Вџссибجرطف中文Ηελενιγ
</Window>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
JasonGrasscommented, Oct 1, 2020

Setting TextBox FontFamily like this maybe useful for Chinese : "Microsoft YaHei,Simsun,苹方-简,宋体-简"

我这里直接设置系统字体可以解决,将 FontFamily 设置为 "Microsoft YaHei,Simsun,苹方-简,宋体-简"。 详见:AvaloniaUI TextBox 不能显示中文的问题解决 - J.晒太阳的猫

0reactions
Codexiaoyicommented, Apr 9, 2020

TextBox will get a rewrite this year but can’t say when.

Nice!I look forward to using it as soon as possible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are the Chinese and Japanese character sets so ...
The solutions they proposed included abolishing all Chinese characters (“kanji”), reducing the number of kanji in use, and abolishing Japanese characters ...
Read more >
Why does Japanese text show up with Chinese glyphs?
The problem is that Japanese text shows as Chinese glyphs. Not for every single Japanese character, but presumably for ones that the system ......
Read more >
Text file displaying characters as chinese, japanese kanji ...
Text file displaying characters as chinese, japanese kanji possible solutions (corrupted, ANSI, UTF) Some characters are forcing the file ...
Read more >
Not working with special characters like Chinese, Korean ...
The problem with Chinese and Japanese is that the Relevanssi algorithm needs words, and Chinese and Japanese text lacks word separators.
Read more >
FAQ - Chinese and Japanese
Japanese users prefer Japanese text written with “Japanese” glyphs. Some Chinese glyphs of CJK unified ideographs are distinct enough from their Japanese ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found