Skip to content

不能修改中文字体 #237

Open
Open
@Grant-S-Z

Description

问题描述

使用 =rime-posframe-properties= 设置字体仅对英文生效。

Emacs中的配置

(use-package rime ;; 输入法
  :custom
  (default-input-method "rime")
  (rime-librime-root "~/.emacs.d/librime/dist") ;; librime 位置
  (rime-emacs-module-header-root "/opt/homebrew/opt/emacs-mac/include/") ;; Emacs 头文件位置
  (rime-share-data-dir "~/Library/Rime") ;; 共享目录
  (rime-user-data-dir "~/.emacs.d/rime") ;; Emacs 目录,需要同步
  (rime-cursor ".")
  (rime-show-candidate 'posframe) ;; 使用 posframe 显示输入法
  (rime-commit1-forall t) ;; 在输入位置显示首个备选项
  (rime-posframe-properties
   (list :internal-border-width 4 ;; 调整 posframe 边框
	 :font "PingFang SC"))
  (mode-line-mule-info '((:eval (rime-lighter)))) ;; 在 modeline 显示输入法标志
  ;; 在 minibuffer 使用后自动关闭输入法
  (rime-deactivate-when-exit-minibuffer t))

截图

image

环境信息

  • 操作系统:MacOS Sequoia 15.0.1
  • Emacs版本:29.1
  • 安装方式:Melpa

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions