duc icon indicating copy to clipboard operation
duc copied to clipboard

Interactive gui doesn't work for Asian characters

Open ashfinal opened this issue 8 years ago • 4 comments

When using duc gui, if there are any folders/files containing Asian characters, they would not be displayed in gui.

ashfinal avatar May 10 '17 16:05 ashfinal

duc UTF-8, including some asian characters, is part of the unit tests. This works for me, see the attached screenshot.

What OS are you using? Did you build Duc from source or are you running a package provided by your operating system?

zevv avatar May 10 '17 16:05 zevv

I'm using macOS Sierra 10.12.4. Build from source, with config ./configure --disable-x11 --with-db-backend=sqlite3 --enable-opengl. Every seems good except duc gui. modes As you can see, the file name is missing. And also the file path above is incorrect.

But duc graph can surely create correct image, which is quite weird.

ashfinal avatar May 10 '17 19:05 ashfinal

Quoting ashfinal (2017-05-10 21:23:46)

I'm using macOS Sierra 10.12.4.

--enable-opengl`.

There's your problem: the OpenGL graphics backend has limited font support. For X11 Duc uses cairo and pango for text rendering, which allows for full unicode support and truetype rendering.

The OpenGL backend is quite basic however: OpenGL itself does not provide any infrastructure for text rendering, so at this time there is only a simple hardcoded fixed sized font available with ISO/IEC 8859-1 only.

-- :wq ^X^Cy^K^X^C^C^C^C

zevv avatar May 10 '17 23:05 zevv

I rebuild duc with cairo and pango support, it still doesn't work. It would be perfect if this problem could be solved… But since duc graph works well for Asian chars, that seems acceptable to me. :)

ashfinal avatar May 11 '17 00:05 ashfinal