Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » Issue With Korean translation of Upp Linux application (Does not render Korean text properly -- shows only squares)
Re: Issue With Korean translation of Upp Linux application [message #45395 is a reply to message #45196] Sat, 07 November 2015 10:01 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Appears to be a font problem. In Win32, it works.

CJK characters are handled by "replacement fonts". Unfortunatly, identifying which fonts contain which characters is very slow process, so U++ has fixed font tables to accelerate this (in Draw/FontCR.cpp).

We will need to add some typical Linux fonts that support Korean. I have identified these fonts in my distro (Mint) to support Korean:

"WenQuanYi Micro Hei Mono"
"NanumMyeongjo"
"NanumGothic"
"WenQuanYi Micro Hei",

- that fixed problem for me. Anyway, you might want to run this simple utility to eventually find more fonts in your distro that support Korean:

#include <CtrlLib/CtrlLib.h>

using namespace Upp;

GUI_APP_MAIN
{
	ArrayCtrl a;
	a.AddColumn();
	for(int i = 0; i < Font::GetFaceCount(); i++) {
		DDUMP(Font::GetFaceName(i));
		a.Add(AttrText(String().Cat() << AsString(i) << ' ' <<
		               Font::GetFaceName(i) << " 업데이트 VT 소프트웨어")
		               .SetFont(Font(i, StdFont().GetHeight())));
	}
	TopWindow w;
	w.Add(a.SizePos());
	w.Run();
}


Then, there are bitfield maps in FontCR. You can use uppbox/FontMaps to generate them... (also, it is a nice demonstration why we need these fixed maps - it is pretty slow Smile

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: message.t file processed by other text editor
Next Topic: Wrong handling of Combined Unicode Characters
Goto Forum:
  


Current Time: Tue May 07 06:21:04 CEST 2024

Total time taken to generate the page: 0.01503 seconds