Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggesting "Noto Mono for Powerline" #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions PowerlineFonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: 'Noto Mono for Powerline';
src: local('NotoMonoForPowerline.woff2'),
url(fonts/NotoMonoForPowerline.woff2) format('woff2');
font-weight: normal;
font-style: normal;
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ There are several `font-family` you can choose from (all Powerline-enabled):
* `Ubuntu Mono` - [Ubuntu Mono derivative
Powerline](https://github.com/powerline/fonts/tree/master/UbuntuMono)
* `Monofur` - [Monofur for Powerline](https://github.com/powerline/fonts/tree/master/Monofur)

*_`Noto Mono for Powerline` - [Noto Mono for Powerline](https://github.com/powerline/fonts/tree/master/NotoMono)

See [Slant](http://www.slant.co/topics/67/~programming-fonts) if you don't know which to choose.

Expand All @@ -34,15 +34,15 @@ See [Slant](http://www.slant.co/topics/67/~programming-fonts) if you don't know
- Launch *Secure Shell* and click on **Options**
(or go to `chrome-extension://pnhechapfaindjhompbnflcldabbghjo/html/nassh_preferences_editor.html`):
- Set **font-family**: `"Source Code Pro", monospace`
- Set **user-css**: `https://cdn.jsdelivr.net/gh/wernight/powerline-web-fonts@ba4426cb0c0b05eb6cb342c7719776a41e1f2114/PowerlineFonts.css`
- Set **user-css**: `https://cdn.jsdelivr.net/gh/grobbie/powerline-web-fonts@dff7dc47388b8e4b2fa66d41cc47658e18ee27e0/PowerlineFonts.css`

### Usage example for [Crosh Window](https://chrome.google.com/webstore/detail/crosh-window/nhbmpbdladcchdhkemlojfjdknjadhmh)

- Start crosh window then press `Ctrl+Shift+J` and paste in the following:

```js
term_.prefs_.set('font-family', '"Source Code Pro", monospace');
term_.prefs_.set('user-css', 'https://cdn.jsdelivr.net/gh/wernight/powerline-web-fonts@ba4426cb0c0b05eb6cb342c7719776a41e1f2114/PowerlineFonts.css');
term_.prefs_.set('user-css', 'https://cdn.jsdelivr.net/gh/grobbie/powerline-web-fonts@dff7dc47388b8e4b2fa66d41cc47658e18ee27e0/PowerlineFonts.css');
```

If you have [Crouton](https://github.com/dnschneid/crouton) installed on a developer mode Chromebook,
Expand All @@ -55,7 +55,7 @@ To add a new font, you can submit a GitHub pull request through a forked reposit

- Include a new font file in [WOFF2 format](https://gist.github.com/sergejmueller/cf6b4f2133bcb3e2f64a).
- Add your font to `PowerlineFonts.css`, `preview.html` and `README.md` (might use [Transfonter](http://transfonter.org/) to help with the CSS).
- Once merged, send another pull request, I might forget, that updates all `https://cdn.rawgit.com/` in this README to the [latest commit SHA-1](https://github.com/wernight/powerline-web-fonts/commits/master). You can do that in the original Pull Request if it gets rebased (merge and sqashes would not work in that case).
- Once merged, send another pull request, I might forget, that updates all `https://cdn.rawgit.com/` in this README to the [latest commit SHA-1](https://github.com/grobbie/powerline-web-fonts/commits/master). You can do that in the original Pull Request if it gets rebased (merge and sqashes would not work in that case).

### Converting to WOFF2

Expand Down
Binary file added fonts/NotoMonoForPowerline.woff2
Binary file not shown.
9 changes: 9 additions & 0 deletions preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
.SourceCodePro { font-family: "Source Code Pro"; }
.UbuntuMono { font-family: "Ubuntu Mono"; }
.Monofur { font-family: "monofur for Powerline" }
.NotoMono { font-family: "Noto Mono for Powerline" }
</style>
</head>
<body>
Expand Down Expand Up @@ -99,5 +100,13 @@ <h3>monofur for Powerline</h3>
ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
"{[(0123456789)]}';+-=_%$,.
</section>
<section class="NotoMono">
<h3>Noto Mono for Powerline</h3>
abcdefghijklmnopqrstuvwxyz<br>
<b>abcdefghijklmnopqrstuvwxyz</b><br>
<i>abcdefghijklmnopqrstuvwxyz</i></br>
ABCDEFGHIJKLMNOPQRSTUVWXYZ<br>
"{[(0123456789)]}';+-=_%$,.
</section>
</body>
</html>