Giter VIP home page Giter VIP logo

sarasa-gothic's Introduction

Sarasa Gothic (更纱黑体 / 更紗黑體 / 更紗ゴシック / 사라사고딕)

This is SARASA GOTHIC, a CJK programming font based on Iosevka and Source Han Sans.

Note

It is highly recommended to completely remove the old version of the fonts before you install the newer version of this font. Many OSes' and softwares' caching system may have trouble when dealing with large TTC fonts.

To build

You need Node.js (version 20 or newer), AFDKO (latest) and ttfautohint installed, then run:

npm install

after the NPM packages are installed, run

npm run build ttf

to build the TTF files, it would be in out/ttf directory.

To build TTC, type

npm run build ttc

instead, the files would be in out/ttc directory.

Please note that you will need a lot of memory to create TTCs, due to the huge quantity of subfamily-orthography combinations.

What are the names?

  • Style dimension
    • Latin/Greek/Cyrillic character set being Inter
      • Quotes (“”) are full width —— Gothic
      • Quotes (“”) are narrow —— UI
    • Latin/Greek/Cyrillic character set being Iosevka
      • Em dashes (——) are full width —— Mono
      • Em dashes (——) are half width —— Term
      • No ligature, Em dashes (——) are half width —— Fixed
  • Orthography dimension
    • CL: Classical orthography
    • SC, TC, J, K, HC: Regional orthography, following Source Han Sans notations.

Mirrors

sarasa-gothic's People

Contributors

be5invis avatar boltomli avatar cwindblows avatar cyanohao avatar jonz94 avatar syimyuzya avatar xhxiaiein avatar yaoge123 avatar zenvie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sarasa-gothic's Issues

Slab-serif version of the fonts?

Your fonts are awesome! Especially, I've used the slab-serif font series (e.g. Inziu IosevkaCC Slab SC) for a long time. After seeing the deprecation notice on the download page of Inziu Iosevka. I decided to move on and download the latest release of Sarasa Gothic, However, all the fonts seem to be sans-serif. Is this by design? Is it possible for me to do something to bring the slab-serif fonts back, or may I just switch back to Inziu Iosevka?

And, well, what does the "deprecation" of a font mean, compared with the common deprecation of an API/application? I thought of the font being no longer maintained, but it shouldn't break as time goes by. Is it correct?

Korean Hangul

I just found that the Hangul characters are not shown when using Sarasa fonts. But it's ok with Source Han Sans. Any idea what's wrong?

关于更纱黑体中拉丁字符字形的疑问

开发者您好。我注意到更纱黑体中的拉丁字符字形并不是思源黑体自带的字形,也不是 Source Sans Pro,而是有点像 Noto Sans。想问问您为什么选择当前的字形,以及以后是否会发布其他拉丁文字形的版本呢?

Display issue in GUI of MacVim

Sarasa Gothis version: 0.2.1
Inziu Iosevka version: 1.13.2
OS version: macOS 10.13
MacVim version: 8.0.1207 Built from source using Homebrew on 2017-10-27 at 12:02:33 with: --with-override-system-vim
iTerm2 version: 3.1.4

Screenshot of issue (using Sarasa Mono SC):
Screenshot of issue

Everything ok when using Inziu Iosevka SC:
Screenshot of MacVim GUI Version using Inziu Iosevka SC

Everything ok in iterm2 using Sarasa Mono SC:
Screenshot of iterm2 using Sarasa Mono SC, which is OK

Thanks a lot for your work on Inziu Iosevka and Sarasa Gothic.

命令提示符中一些符号的显示问题

例如数学交集并集符号∩∪和倒三角符号▽,在命令提示符中输入以后占用两个字符的宽度,此时在后面继续输入一个字母,然后将命令提示符窗口最小化,再恢复查看,可以看到后面的那个字母向前缩了一个字符的宽度,但是符号的光标依旧是两个字符的宽度。

sarasa-bolditalic.ttc 非有效字体文件.

Win10 LTSB 14393

使用字体版本:sarasa-gothic-ttc-0.5.1.7z/sarasa-gothic-ttc-0.5.2.7z

产生问题: 提示sarasa-bolditalic.ttc为非有效字体文件. Windows中无对应的粗斜体. 标准/粗体/斜体正常.

default

"=" rendering weird in Ubuntu 16.04

I have tried it in gnome-terminal and terminator, they all look like as below
image
while everything works fine in latest archlinux gnome-terminal.

So I am wondering whether it is a system bug.

Can't build!

When I build in windows, it takes too long and throw a error.
♦ Command otfccbuild out\ttc\sarasa-italic-parts.7.otd -o out\ttc\sarasa-italic-parts.7.ttf -k --subroutinize --keep-average-char-width otfccbuild : Parse into JSON : [ERROR] Cannot parse JSON file "§ Xx§�Ux§�Wx§Ux§@ux§�Xx§�Yx§�Zx§". Exit.
♦ Command otfccbuild out\ttc\sarasa-italic-parts.10.otd -o out\ttc\sarasa-italic-parts.10.ttf -k --subroutinize --keep-average-char-width
otfccbuild out\ttc\sarasa-italic-parts.5.otd -o out\ttc\sarasa-italic-parts.5.ttf -k --subroutinize --keep-average-char-width failed with code 1

  • index.js:132 ChildProcess.

  • events.js:125 emitTwo

  • events.js:213 ChildProcess.emit

  • enoent.js:40 ChildProcess.cp.emit

  • child_process.js:927 maybeClose

  • child_process.js:211 Process.ChildProcess._handle.onexit `

在tc中设置字体,简体中文为乱码

在total commaner中设置列表字体,选择界面字体名称“等距更纱黑体 SC“一项显示为乱码,其他都正常。设置完成后文件列表的文件名称也变成乱码。字体版本为0.6.0,tc版本9.0a。
tim 20180813141650

Non ASCII character in REG entry name causing VS Studio installer to crash

While running VS installer, the setup "setup detected a issue during operation", by checking logfile from %TEMP%, it is due to:

[13D8:3DDC][2018-04-10T18:07:33]e000: MUX: ERROR: �System.Windows.Media.FontFamily��繝����莞�饚���常�
[13D8:3DDC][2018-04-10T18:07:33]e000: MUX: Stack: � System.Windows.Media.Typeface..ctor(FontFamily fontFamily, FontStyle style, FontWeight weight, FontStretch stretch)

And I fond out that in reg entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts

entry names of Sarasa-Gothic fonts contain Chinese characters, after deleting the fonts, the installer runs properly, hopefully this could be solved soon

TTC is broken?

Happens with all 4 TTCs from the latest release on win7 x64
Image

字体使用中遇到的一些问题

我用过两款字体 Sarasa-Gothic 和 Iosevka。
在使用的过程中遇到了一些小问题。

Iosevka

  1. winxp 下有部分字体无法安装成功(具体是哪几个我也忘记了,电脑不在手边,而且我现在改用 Sarasa-Gothic 了,在 winxp 系统下可以全部安装)。
  2. 字号较大的时候,字体会显示不全(一级标题、二级标题那种大的字号,在 win10 与 winxp 系统中都会这样)

Sarasa-Gothic

winxp 下,部分软件内使用 Sarasa-Gothic 会乱码。比如 IDEA12 中把编辑器位置的字体设置成 Sarasa-Gothic 就会乱码,使用其他字体就不会有问题(使用 Iosevka 也没有问题,所以我现在这两种字体混合使用)

以上问题大部分是 winxp 下发生的,在 win10 中没发现什么问题。

还有一个比较个人的问题。
我在使用 mushclient 客户端(类似一个加强版的 cmd 终端)玩一款 mud 游戏(纯文字的游戏)
里面有一些 文字与制表符或特殊符号等组成的图形,涉及到对齐问题,所以字体很重要。
比如使用楷体可以达到下面的效果:
01
可以达到同样效果的目前我测试出来的有 宋体、新宋、仿宋、幼圆,还有一个就是楷体。

我使用 Sarasa-Gothic 的效果是这样的:
02
(等距更纱黑体 SC、TC、CL、J 和 更纱黑体 CL、TC.. 更纱黑体 UI CL... 等等所有都试过,结果都一样)

只有 Iosevka 的 CC 系列字体(Inziu IosevkaCC SC、Inziu IosevkaCC TC 等等)可以达到最好的效果如下:
03
但是依然有一点小问题,就是图中用圈出来的地方,应该是「Ψ」这个符号占了半个汉字字符宽度引起的,这里的「★」符号占了一个汉字字符宽度,那么能否让「Ψ」这个符号同样占一个汉字字符的宽度呢?

于Notepad++ 中使用该款字型后出现异常卡顿的情况

于Notepad++ 中使用该款字型后出现异常卡顿的情况,表现为上下翻页过程中,文本行缓慢逐行刷新,改用其他字型后未见该情况。

字型信息
sarasa-gothic-ttc-0.5.4

Notepad++ 信息
Notepad++ v7.5.7 (32-bit)
Build time : Jun 29 2018 - 00:46:55
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

What shoule be the font name of Sarasa Mono that can be used in vscode?

What is the font name of Sarasa Mono that can be used as an option of editor.fontFamily in VSCode's user settings under Windows10? Like the following:

{
  // This setting works correctly with Wenquanyi Microhei font series.
  "editor.fontFamily": "WenQuanYi Micro Hei Mono"
}

I've tried Sarasa Mono, Sarasa Mono SC and 更纱黑体 but none of them works.

Running command (New-Object System.Drawing.Text.InstalledFontCollection).Families in powershell gives the following results:

...
更纱黑体 CL
更纱黑体 J
更纱黑体 SC
更纱黑体 TC
更纱黑体 UI CL
更纱黑体 UI J
更纱黑体 UI SC
更纱黑体 UI TC
...
等距更纱黑体 CL
等距更纱黑体 J
等距更纱黑体 SC
等距更纱黑体 TC
...

Width of some glyphs in Sarasa Term inconsistent with Iosevka Term

2018-03-24 00 42 08

2018-03-24 00 45 20

'†' (U+2020), '‡' (U+2021) & '…' (U+2026) are single width characters in terminal (consistent with Iosevka Term), but in Sarasa Term the glyphs have double (or even TRIPLE for U+2026) width.

(Even in Sarasa Mono would it be more proper to have double width (as in Source Han Sans) for U+2026...)

License issue

This font uses Source Han Sans by Adobe Systems Incorporated, but does not make proper attribution. I am not lawyer, but I think the copyright notice found here adobe-fonts/source-han-sans#195 should be included in the LICENSE file.

Cannot install on Windows 2016

Reproduce steps:

  1. Download ttc font with version v0.5.2 from release page
  2. Extract it somewhere & install them all

Expected:
All of them successfully installed.

Actual:
Cannot install sarasa-bolditalic.ttc because of invalidation.

Additional:

  1. The font sarasa-bolditalic.ttc can be preview
  2. Windows version: Windows Server 2016 14393.2097

TTC font blankspace width issue in RStudio

System details

RStudio Edition : Desktop
RStudio Version : Latest(1.1.447) 

Project link

OS Version      : Windows 10 1803(17134.5)
R Version       : Latest Stable(3.5.0)
Custom Font:  Sarasa Mono SC(TTC)

Steps to reproduce the problem

Use this font and input some spaces and you will see.(more spaces, more drift)

Describe the problem in detail

like this screenshot

Screenshot

Describe the behavior you expected

The cursor is expected to present right after the "l"

###P.S.
As this might be an RStudio bug, i've reported to the project also.
And this issue looks like other symbol width issue so I'll try the ttf version.

License clarification

Are the font files of Sarasa Gothic licensed under SIL Open Font License 1.1 or BSD3?

Could you include a LICENSE file in the release .7z file?

Symbol width issues on Linux

Some symbols, specifically at least ※ 0x203b REFERENCE MARK and … 0x2026 HORIZONTAL ELLIPSIS, are (as far as I understand) reported by my OS wcwidth to be half-width, but they are full width in the font, causing them to show as half width boxes if I don't define a fallback font that has them half-width.

This could be just an error in my wcwidth implementation, but I see that other symbols such as circled digits (① 0x2460 CIRCLED DIGIT ONE etc.) are condensed to fit in half-width space.

Also I'm not sure but I think there's some error in … 0x2026 HORIZONTAL ELLIPSIS anyway, because this is how it looks like in FontForge:

In my browser it renders as more like 1.5 width than full width.

Other than that, thank you for the awesome font!

Iosevka中的星号问题

你好 我使用的Saras-Gothic的等距版本等距"更纱黑体 SC"
使用星号的时候发现有两种样式,一种是位于中间位置,一种是位于中间偏上

2

我在Iosevka的原版仓库中看到示例图形, 也存在这种现象

其中的

wchar_t*"

$*-+

中两处*号位置就是不一样的

这个是否正常设计?

TTC font cause matplotlib freezes

On Microsoft Windows [版本 10.0.16299.248] with matplotlib 2.1.2 and 2.0.2, there are some weird problems coupled with the ttc font (at least ver 0.5.1)

With matplotlib 2.1.2

import matplotlib.pyplot as plt
plt.plot([1,2,3])
plt.show()  # this will cause a freeze

With matplotlib 2.0.2

import matplotlib.pyplot as plt  # this will cause a freeze

There is no WARN or ERROR throws and it just freezes the python session. Uninstalling all ttc fonts and switching back to ttf fonts solve these problems. These problems does not necessarily due to Sarasa-Gothic font build. I'm leaving this information here in case someone might encounter these problems. So feel free to close this issue.

There is also one more problem caused by ttc font:
With the deprecated Inziu CJK ttc font, it will cause the Visual Studio 2015 installer fail to start, about 1 year ago with some older Windows 10 build. I don't know if it still present in current Window 10 build.
Leaving this additional information here in case you want to investigate these issues (as a true insider of M$ ;)

Questions about mono font

I want to use it in powershell, and I see these options:

  • Sarasa Term CL/J/SC/TC
  • 等距更纱黑体 CL/J/SC/TC
  • 等距更纱黑体 T CL/J/SC/TC

So I have two questions:

  • what's the differences between them
  • how can I use them in windows terminal like cmd/powershell (if I just select and apply, it would fallback to 新宋体)

OS version: Windows 10 1709 家庭中文版

字符✎使用Sarasa-Gothic字体无法显示

我在Windows10上安装了Sarasa-Gothic系列字体,并在 WSL 上装了 PowerLine,将控制台字体设置为 Sarasa Term SC 后,其他一切都好,但是进入 Git 目录之后,符号“✎”显示为方块。如图:

qq 20180315160934

改为 DejaVu Sans Mono for Powerline 才能正常显示,如图:

qq 20180315160830

DejaVu Sans Mono 显然效果不如 Sarasa Term SC 好,但是如果 Sarasa Term SC 能够显示字符“✎”的话,就更完美了。

Version 0.5.1 not fully compatible with WebStorm

image

Platform: Windows 10
Font version: 0.5.1
Font type: TTC
Application version: WebStorm 2017.3.4

Monospaced font works on most application except WebStorm. Version 0.4.0 works find in WebStorm.

Lose the top half of bracket in svg tag.

I use a vscode extension named Bracket Pair Colorizer to colorize bracket.
Recently it add a feature that can show bracket in gutter, but it looks lose the top half.
image
parentheses and curly brackets have same issue.

Here is code in the extension that render bracket in gutter.
It use a svg tag like:

<svg xmlns="http://www.w3.org/2000/svg" height="10" width="10">
    <text x="50%" y="50%" fill="green" font-family="Sarasa Mono SC" font-size="10" text-anchor="middle" dominant-baseline="middle">{</text>
</svg>

Width of pozhehao (破折号)

The width of pozhehao (U+2E3A or two U+2014) is the same as one normal Chinese character in Sarasa Mono. But in clreq, it should "takes space of two characters, in the shape of a single line without a break".

This is the same for U+2E3B (three-em dash).

image

Is this a feature of Sarasa-Gothic?

Version: 0.5.0

编译错误

你好,我想将英文版的等宽字体换成consolas样式的,重新编译的时候出现以下错误,请问该如何解决?
谢谢。

♦ Command node run --recipe make/pass1/build.js --main sources/iosevka/iosevka-bold.ttf --asian build/as0/mono-sc-bold.ttf --ws build/ws0/mono-sc-bold.ttf -o build/pass1/mono-sc-bold.ttf.tmp.ttf --family mono --subfamily SC --style bold
♦ Command node run --recipe make/pass1/build.js --main sources/iosevka/iosevka-regular.ttf --asian build/as0/mono-sc-regular.ttf --ws build/ws0/mono-sc-regular.ttf -o build/pass1/mono-sc-regular.ttf.tmp.ttf --family mono --subfamily SC --style regular
(node:76983) UnhandledPromiseRejectionWarning: Error: write EPIPE
    at WriteWrap.afterWrite [as oncomplete] (net.js:844:14)
(node:76983) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:76983) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:76978) UnhandledPromiseRejectionWarning: Error: write EPIPE
    at WriteWrap.afterWrite [as oncomplete] (net.js:844:14)
(node:76978) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:76978) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.