Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9054523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:42:40+00:00 2026-06-16T13:42:40+00:00

I use the following setting to config the font for emacs under windows system

  • 0

I use the following setting to config the font for emacs under windows system

(create-fontset-from-fontset-spec
 "-outline-Cousine-normal-normal-normal-*-*-*-*-*-*-*-fontset-Consolas")
(set-fontset-font "fontset-Consolas" 
                  '(#x6d4b . #x6d4c) 
                  "Microsoft YaHei" nil 'prepend)
(set-face-attribute 'default nil :font "fontset-Consolas")

After emacs start up, I input that char #x6d4b into the emacs buffer, but it turns out to be a square, which means the font setting does not work. I also use describe-char to show detail information, and get the following result:

             position: 2888 of 4342 (66%), column: 13
            character: 测 (displayed as 测) (codepoint 27979, #o66513, #x6d4b)
    preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF))
code point in charset: 0x6D4B
               syntax: w    which means: word
             category: .:Base, C:2-byte han, L:Left-to-right (strong), c:Chinese, |:line breakable
          buffer code: #xE6 #xB5 #x8B
            file code: #xE6 #xB5 #x8B (encoded by coding system utf-8-dos)
              display: no font available

We can find that the display property shows it does not have available font for it, but I indeed give that in the font config.

Could you point out where is the problem? I suppose the set-fontset-font should work even under windows system

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:42:41+00:00Added an answer on June 16, 2026 at 1:42 pm

    As long as you just want to set the default font and a different font for two specific characters, the following works for me:

    (set-face-attribute 'default nil :family "Consolas")
    (set-fontset-font "fontset-default" '(#x6d4b . #x6d4c)
                      "Microsoft YaHei" nil 'prepend)
    

    (prepend is unnecessary with Consolas, but may help with your font).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use the following URL setting to authorize Facebook login. But the page for
I use following code: Create a retry policy, when error, retry after 1 second,
for example i use following command to find a record SELECT `users`.`mail` FROM `users`
I have a Asp.net web application running with the following config setting. <xhtmlConformance mode=Legacy/>
In my app.config file I made the setting like the following <add key =
I have a web.config with the following: <system.web> <customErrors mode=Off/> <authentication mode=Forms> <forms loginUrl=Login.aspx
In my ASP.MVC 2.0 website I have the following setting in web.config: <globalization uiCulture=da-DK
Could use some help setting up an AJAX Search form for Users... config.rb -
I use the following web.xml setting to direct unlogged-in user to /faces/loginPage.xhtml. In /faces/loginPage.xhtml
After setting up rspec in windows. I receive the following message; C:\Sites\rails_projects\sample_app>bundle exec rspec

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.