Skip to content

Can't display Chinese characters correctly #23

@chansey97

Description

@chansey97

The following pos-tip-show call displays correctly when Emacs is started with -Q.

(require 'pos-tip)
(pos-tip-show "你好")

Screenshot

image

The default font under the "你好" is harfbuzz:-outline-MS Gothic-regular-normal-normal-mono-13-*-*-*-c-*-gb2312.1980-0 (#xC3C).

However, changing font will cause pos-tip-show displays incorrectly.

(set-fontset-font t 'han (font-spec :family "Microsoft YaHei" :size 14) nil nil)

(require 'pos-tip)
(pos-tip-show "你好")

Screenshot

image

It can only display half a character. Changing coding-system to utf-8 doesn't help.

Environment: Emacs 29.3 on Windows 10 with pos-tip 0.4.7

Thanks.

Related issue: #22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions