Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Font "SourceHanCode JP" is not working. #11169

Closed
5 of 6 tasks
higeaaa opened this issue Mar 15, 2016 · 23 comments
Closed
5 of 6 tasks

Font "SourceHanCode JP" is not working. #11169

higeaaa opened this issue Mar 15, 2016 · 23 comments
Labels
typography windows Issues that occur on Windows but not on other platforms.

Comments

@higeaaa
Copy link

higeaaa commented Mar 15, 2016

Prerequisites

Description

I have "Source Han Code Pro" installed myPC(windows7) cause I want to use the default font on atom.
Setting font-family on styles.less is not working.

 atom-text-editor {
   font-family: "Source Han Code JP Light", "SourceHanCodeJP-Light";
 }

Versions

$ atom --version
1.5.3

$ apm -v
apm  1.6.0
npm  2.13.3
node 0.10.40
python
git
visual studio
@50Wliu
Copy link
Contributor

50Wliu commented Mar 15, 2016

Can you please try atom-text-editor::shadow?

@higeaaa
Copy link
Author

higeaaa commented Mar 16, 2016

@50Wliu Thank you for your advise. I try atom-text-editor::shadow, but it is not worked.

atom-text-editor {
   font-family: "Source Han Code JP Light", "SourceHanCodeJP-Light";
}
atom-text-editor::shadow  * {
  font-family: "Source Han Code JP Light", "SourceHanCodeJP-Light";
}

@damieng damieng added the windows Issues that occur on Windows but not on other platforms. label Mar 16, 2016
@damieng
Copy link
Contributor

damieng commented Mar 16, 2016

Font-family can not accept weights - that is a limitation of CSS. You can however do this:

  1. Set Source Han Code JP as the font in File > Settings
  2. Open Config Folder and edit styles.less
  3. Set atom-text-editor to:
atom-text-editor {
  font-weight: 300;
}

This will correctly choose the Light weight which is only marked as 'L' in this font so you need to use the numeric equivalent instead.

sourcehancode

@higeaaa
Copy link
Author

higeaaa commented Mar 16, 2016

@damieng Thank you for your advise.I tried to set according to your advice, but the font was not reflected.

image

It was good Speaking at the beginning the issue,
As mentioned above, in the first place "Source Han Code JP" it is not applied, and this would generate font such as Mincho.

@damieng
Copy link
Contributor

damieng commented Mar 16, 2016

You might need to restart Atom after setting Source Han Code JP as the Font in Settings. I did and forgot to mention that.

@higeaaa
Copy link
Author

higeaaa commented Mar 16, 2016

@damieng I tried restart, but "Source Han Code JP" is not applied.

@damieng
Copy link
Contributor

damieng commented Mar 16, 2016

Hmm. I must admit I was using the latest Atom built from master and not 1.5.3. I will try that tomorrow.

@higeaaa
Copy link
Author

higeaaa commented Mar 16, 2016

@damieng Thank you for your kindness.

@damieng damieng reopened this Mar 16, 2016
@damieng
Copy link
Contributor

damieng commented Mar 16, 2016

Just tried it again on Atom 1.5.4. Set Source Han Code JP as the font family in atom via the settings page. Had to restart Atom then it applied (as shown, the text control reflects the current font)
sourcehancode

Then went into styles.less and added font-weight: 300; to atom-text-editor and it updated the weight as shown:

light

I would recommend:

  • Making sure you have the latest and correct version of this font - I used SourceHanCodeJP-Light.otf from source-han-code-jp-2.000R.zip
  • Ensuring you do not have anything else in your styles.less file that might be conflicting
  • Switching back to the default Atom One Dark UI and syntax themes to make sure the theme is not conflicting

@higeaaa
Copy link
Author

higeaaa commented Mar 17, 2016

@damieng I tried below,

  1. Uninstall atom 1.5.3
  2. Install atom 1.5.4
  3. Delete Fonts "Source Han Code JP".
  4. Install Fonts "Source Han Code JP" version 2.000(otf).
  5. Switch back to the default Atom One Dark UI and syntax themes.
  6. Set "Source Han Code JP" via setting page.
  7. Set styles.less file only your recommended.
  8. Restart atom.

but "Source Han Code JP" is not applied.
image

In addition, other applications (excel, Outlook) I set the font, has been applied.
image

@damieng
Copy link
Contributor

damieng commented Mar 17, 2016

Which OTF files are you installing specifically? I tested it by installing
only Normal and Light.

On Wed, Mar 16, 2016 at 9:58 PM higeaaa notifications@github.com wrote:

@damieng https://github.com/damieng I tried below,

  1. Uninstall atom 1.5.3
  2. Install atom 1.5.4
  3. Delete Fonts "Source Han Code JP".
  4. Install Fonts "Source Han Code JP".
  5. Switch back to the default Atom One Dark UI and syntax themes.
  6. Set "Source Han Code JP" via setting page.
  7. Set styles.less file only your recommended.
  8. Restart atom.

but "Source Han Code JP" is not applied.

[image: image]
https://cloud.githubusercontent.com/assets/17560288/13836652/dbb3a3d0-ec46-11e5-8a52-3202b57c1963.png

In addition, other applications (excel, Outlook) I set the font, has been
applied.
[image: image]
https://cloud.githubusercontent.com/assets/17560288/13836732/ab8b34a6-ec47-11e5-8f06-3d3f8e41168c.png


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#11169 (comment)

@higeaaa
Copy link
Author

higeaaa commented Mar 17, 2016

@damieng I installing all files (14file) from this. I tried delete font files leaving only Normal, but is not applied.
image
image

@damieng
Copy link
Contributor

damieng commented Mar 17, 2016

I wonder if it's anything to do with the operating system language somehow interfering? Could you login as Guest/secondary account on your computer set to US English and see if it works there? If not I will try to create a second account in Japanese.

@higeaaa
Copy link
Author

higeaaa commented Mar 17, 2016

I'm sorry, My PC is under the management of the company, it will not be able to English of.

@damieng
Copy link
Contributor

damieng commented Mar 17, 2016

I will try Japanese on my machine in case it is related to that.

On Wed, Mar 16, 2016 at 11:00 PM higeaaa notifications@github.com wrote:

I'm sorry, My PC is under the management of the company, it will not be
able to English of.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#11169 (comment)

@higeaaa
Copy link
Author

higeaaa commented Mar 17, 2016

@damieng Thank you! I attached a separate tab of the font properties for reference.

image

"title" has been written in Japanese. However, it did not also apply to set this "title".

@damieng
Copy link
Contributor

damieng commented Mar 18, 2016

I tried this on my machine with a user set to Japanese and it still worked just fine. Not sure what else to suggest.
test

Perhaps delete your %userprofile%.atom folder and try again in case some css/theme/plugin is interfering?

@higeaaa
Copy link
Author

higeaaa commented Mar 18, 2016

I tried below, but not applied...

  • Deleted %USERPROFILE%\AppData\atom folder.
  • Deleted %USERPROFILE%.atom folder.
  • Installed atom v1.6.0.
  • No css/theme/plugin

image

Do you need to do something set in the environment variable?

@damieng
Copy link
Contributor

damieng commented Mar 18, 2016

There is no environment variables relating to this.

I am totally out of ideas as to why it does not apply on your system.

@higeaaa
Copy link
Author

higeaaa commented Mar 18, 2016

@damieng OK, I decided to use a different font. Thank you for your carefully investigated.

@damieng
Copy link
Contributor

damieng commented Apr 22, 2016

Given we have no path to go forward here I'm closing the issue unless new information becomes available.

@damieng damieng closed this as completed Apr 22, 2016
@higeaaa
Copy link
Author

higeaaa commented May 2, 2016

Perhaps, I think that Group Policy is affecting. My private for the PC (windows10), the MAC and ubuntu, no problem SourceHanCodeJP have available.Thank you.

@lock
Copy link

lock bot commented Apr 8, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

@lock lock bot locked and limited conversation to collaborators Apr 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
typography windows Issues that occur on Windows but not on other platforms.
Projects
None yet
Development

No branches or pull requests

3 participants