From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68339: 29.1; Emacs doesn't support Microsoft PinYin Input Method well Date: Tue, 09 Jan 2024 16:13:12 +0200 Message-ID: <83il42ppc7.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1760"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68339@debbugs.gnu.org To: Gao Feng Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 09 15:14:34 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNCsD-0000DT-B0 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 Jan 2024 15:14:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNCro-0000WJ-3F; Tue, 09 Jan 2024 09:14:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNCrc-0000Uw-Jn for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 09:13:56 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNCrb-0002aS-4W for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 09:13:56 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNCrh-0006v7-Jr for bug-gnu-emacs@gnu.org; Tue, 09 Jan 2024 09:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jan 2024 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68339 X-GNU-PR-Package: emacs Original-Received: via spool by 68339-submit@debbugs.gnu.org id=B68339.170480962826575 (code B ref 68339); Tue, 09 Jan 2024 14:14:01 +0000 Original-Received: (at 68339) by debbugs.gnu.org; 9 Jan 2024 14:13:48 +0000 Original-Received: from localhost ([127.0.0.1]:38811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNCrT-0006uY-Sv for submit@debbugs.gnu.org; Tue, 09 Jan 2024 09:13:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNCrS-0006uN-Qk for 68339@debbugs.gnu.org; Tue, 09 Jan 2024 09:13:47 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNCrG-0002Nm-8K; Tue, 09 Jan 2024 09:13:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aiLx6Unrs2VwJ5C9IXgHOBjlg58hBw9sOMjut+oVcO8=; b=BWnqCpld0c9T HnByZcOclK5rdQGwTGo5YtXYLcMDdyHUQTuTV6trgEdpB4MfyLaB6UqRpYpRlIndRfZXeQVsWuyjL Rs4Z01BP9V5OW4kcQsWycVBqLFMBnomIrUjGnd9KZJHCNo58rdqtesMWszShwS/7jGEzmGyGxIOr0 V+sOX3ObJpgGzGloWr8g9M2eX+AHEZ3HbqFwWgxPfMPk+6gCAsRahvsz7o21GTDcaW1on1K12AJgE xce2w3pLt6F7zSIp/SY3Sq2dqIBJxknLLpZEDyIHMs0MrWBI+Iqts9kk9gTpn9VjF0yquzUuN4QW+ E1xNkq8NYfkdLKN9qkaNGA==; In-Reply-To: (message from Gao Feng on Mon, 8 Jan 2024 23:54:18 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277628 Archived-At: > From: Gao Feng > Date: Mon, 8 Jan 2024 23:54:18 +0000 > > Many of us are using Microsoft PinYin Input Method to input Chinese in Windows System. However, > its font size in emacs is too small to be seen while VIM doesn't have this issue. > > With the help of emacser from Emacs China, it seems that the cause is that the im font size is fixed in > emacs while VIM has code to deal with it > (https://github.com/vim/vim/blob/124371c5a149a8c0c75c04b6c90ac11e71a0aa97/src/gui_w32.c#L5862-L5875). Maybe that Emacs user from China could also suggest a patch for Emacs to fix this issue? Po Lu, any comments or suggestions? The Vim code uses ImmSetCompositionFont function to set the font. I don't have a good idea how to choose a font for that function, but perhaps we could use ImmGetCompositionFont to retrieve the font used by default, and then change its height and call ImmSetCompositionFont? I'm just stabbing in the dark, and I don't have a way of testing these ideas anyway.