Skip to content

Commit

Permalink
🎉 Bump to v4.1.0 #37
Browse files Browse the repository at this point in the history
Merge branch 'iconsfordevs'
  • Loading branch information
miiton committed Sep 17, 2018
2 parents 48700c9 + 35cfd2f commit ac115da
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
1 change: 1 addition & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ with Reserved Font Name Cica
- IEC Power Symbols : https://unicodepowersymbol.com/
- Powerline Symbols : https://github.com/powerline/powerline
- Seti-UI + Custom : https://github.com/jesseweed/seti-ui
- Icons for Devs : https://github.com/mirmat/iconsfordevs
- Apache License 2.0 - https://www.apache.org/licenses/LICENSE-2.0.html
- Noto Emoji : https://github.com/googlei18n/noto-emoji
- Free license
Expand Down
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- それ以外の文字に [Rounded Mgen+](http://jikasei.me/font/rounded-mgenplus/)
- [Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) (= Powerlineパッチ、その他適用済。Pomiconsは除外※)
- [Noto Emoji](https://www.google.com/get/noto/)
- [Icons for Devs](https://github.com/mirmat/iconsfordevs)
* tmuxの画面分割に対応しています
* 非HiDPI(非Retina)のWindowsでも文字が欠けません
* 下付き文字や上付き文字など、特殊な文字の判読性を考慮([JuliaLang](https://julialang.org/) を想定しています)
Expand All @@ -28,6 +29,8 @@
```
o Cica
|\
* * Icons for Devs
|\
* * NERDFonts (without Pomicons※)
|\
* * Noto Emoji (無しバージョンあり)
Expand All @@ -48,6 +51,32 @@ o Cica
- ※Nerd Fontsに含まれるPomiconsのグリフは商用利用が出来ないライセンスなのでジェネレータからは除外しています。
- ※アイコン類はフォントをインストール後 [https:\/\/miiton.github.io\/Cica\/](https://miiton.github.io/Cica/) で確認出来ます。

## Q&A

### 矢印記号、半角なの...?

ソースコード中で矢印記号はそう使わないと判断して半角幅にしました。
とはいえMarkdown中では使うこともあると思うのですが、その場合
あいまい文字が半角の環境で見切れてしまうので、それであれば
多少不格好でも判読できたほうが良いという判断です。

尚、絵文字の矢印を使うという手もあります(`U+F060 - U+F063 `

### NerdTree、CtrlPでVueのアイコンが出ない

Vueのアイコンを追加しました(v4.1.0)

.vimrcで以下を追加すると表示できます。(要 [ryanoasis/vim\-devicons: Adds file type glyphs/icons to popular Vim plugins: NERDTree, vim\-airline, Powerline, Unite, vim\-startify and more](https://github.com/ryanoasis/vim-devicons)

```vim
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols = {}
let g:WebDevIconsUnicodeDecorateFileNodesExtensionSymbols['vue'] = ''
" アイコン入力方法 : `[Ctrl+V]` > `[u]` > `e905`
let g:NERDTreeExtensionHighlightColor = {}
let g:NERDTreeExtensionHighlightColor['vue'] = '42B983'
```


## 既知の問題

* [Ubuntu 上の gVim で powerline 用フォントが少しずれます。 · Issue \#33 · miiton/Cica](https://github.com/miiton/Cica/issues/33)
Expand Down Expand Up @@ -122,3 +151,4 @@ Cicaフォントの合成にあたり素晴らしいフォントを提供して
- Noto Emoji : [googlei18n/noto\-emoji: Noto Emoji fonts](https://github.com/googlei18n/noto-emoji)
- NERDFonts (without Pomicons) : [Nerd Fonts \- Iconic font aggregator, collection, and patcher](https://nerdfonts.com/)
- DejaVu Sans Mono : [DejaVu Fonts](https://dejavu-fonts.github.io/)
- Icons for Devs : [mirmat/iconsfordevs: Icons for Devs \- An iconic font made for developers](https://github.com/mirmat/iconsfordevs)
17 changes: 16 additions & 1 deletion cica.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
SOURCE = './sourceFonts'
LICENSE = open('./LICENSE.txt').read()
COPYRIGHT = open('./COPYRIGHT.txt').read()
VERSION = '4.0.0'
VERSION = '4.1.0'
FAMILY = 'Cica'

fonts = [
Expand Down Expand Up @@ -402,6 +402,11 @@ def modify_nerd(_g):
return _g


def modify_iconsfordevs(_g):
_g.transform(psMat.compose(psMat.scale(2), psMat.translate(0, -126)))
_g.width = 1024
_g = align_to_center(_g)
return _g

def vertical_line_to_broken_bar(_f):
_f.selection.select(0x00a6)
Expand Down Expand Up @@ -523,6 +528,7 @@ def build_font(_f, emoji):
hack = remove_glyph_from_hack(hack)
cica = fontforge.open('./sourceFonts/%s' % _f.get('mgen_plus'))
nerd = fontforge.open('./sourceFonts/nerd.ttf')
icons_for_devs = fontforge.open('./sourceFonts/iconsfordevs.ttf')

for g in hack.glyphs():
g.transform((0.42,0,0,0.42,0,0))
Expand Down Expand Up @@ -590,6 +596,15 @@ def build_font(_f, emoji):
cica.selection.select(g.encoding)
cica.paste()

for g in icons_for_devs.glyphs():
if g.encoding < 0xe900 or g.encoding > 0xe950:
continue
g = modify_iconsfordevs(g)
icons_for_devs.selection.select(g.encoding)
icons_for_devs.copy()
cica.selection.select(g.encoding)
cica.paste()

cica = fix_box_drawings(cica)
cica = zenkaku_space(cica)
cica = zero(cica)
Expand Down

0 comments on commit ac115da

Please sign in to comment.