mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
make crostini font instructions stylistically similar to the rest and copy them over to font.md (#1934)
This commit is contained in:
parent
c1c827e21d
commit
487a388dbd
2 changed files with 33 additions and 10 deletions
13
README.md
13
README.md
|
@ -704,15 +704,9 @@ If you are using a different terminal, proceed with manual font installation.
|
||||||
```
|
```
|
||||||
After changing the config run `xrdb ~/.Xresources` to reload it. The new config is applied to
|
After changing the config run `xrdb ~/.Xresources` to reload it. The new config is applied to
|
||||||
all new terminals.
|
all new terminals.
|
||||||
- **[Crostini](https://chromeos.dev/en/linux)**: Open internal terminal preferences:
|
- Crostini (Linux on Chrome OS): Open [internal terminal preferences](
|
||||||
```
|
chrome-untrusted://terminal/html/nassh_preferences_editor.html), set *Text font family* to
|
||||||
chrome-untrusted://terminal/html/nassh_preferences_editor.html
|
`'MesloLGS NF'` and *Custom CSS (inline text)* to the following:
|
||||||
```
|
|
||||||
Set *Text font family* to:
|
|
||||||
```text
|
|
||||||
'Source Code Pro', 'MesloLGS NF', 'Powerline For Source Code Pro', 'Noto Sans Mono'
|
|
||||||
```
|
|
||||||
and *Custom CSS (inline text)* to:
|
|
||||||
```css
|
```css
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "MesloLGS NF";
|
font-family: "MesloLGS NF";
|
||||||
|
@ -740,7 +734,6 @@ If you are using a different terminal, proceed with manual font installation.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
**_CAVEAT_**: If you open the normal terminal preferences these settings will be overwritten.
|
**_CAVEAT_**: If you open the normal terminal preferences these settings will be overwritten.
|
||||||
|
|
||||||
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
||||||
incorrectly with the new font.
|
incorrectly with the new font.
|
||||||
|
|
||||||
|
|
30
font.md
30
font.md
|
@ -117,6 +117,36 @@ If you are using a different terminal, proceed with manual font installation.
|
||||||
```
|
```
|
||||||
After changing the config run `xrdb ~/.Xresources` to reload it. The new config is applied to
|
After changing the config run `xrdb ~/.Xresources` to reload it. The new config is applied to
|
||||||
all new terminals.
|
all new terminals.
|
||||||
|
- Crostini (Linux on Chrome OS): Open [internal terminal preferences](
|
||||||
|
chrome-untrusted://terminal/html/nassh_preferences_editor.html), set *Text font family* to
|
||||||
|
`'MesloLGS NF'` and *Custom CSS (inline text)* to the following:
|
||||||
|
```css
|
||||||
|
@font-face {
|
||||||
|
font-family: "MesloLGS NF";
|
||||||
|
src: url("https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/MesloLGS%20NF%20Regular.ttf");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "MesloLGS NF";
|
||||||
|
src: url("https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/MesloLGS%20NF%20Bold.ttf");
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "MesloLGS NF";
|
||||||
|
src: url("https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/MesloLGS%20NF%20Italic.ttf");
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
@font-face {
|
||||||
|
font-family: "MesloLGS NF";
|
||||||
|
src: url("https://raw.githubusercontent.com/romkatv/powerlevel10k-media/master/MesloLGS%20NF%20Bold%20Italic.ttf");
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
**_CAVEAT_**: If you open the normal terminal preferences these settings will be overwritten.
|
||||||
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
1. Run `p10k configure` to generate a new `~/.p10k.zsh`. The old config may work
|
||||||
incorrectly with the new font.
|
incorrectly with the new font.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue