change font to smaller non nerdfont
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,36 +0,0 @@
|
|||||||
These fonts were created by the Bigelow & Holmes foundry specifically for the
|
|
||||||
Go project. See https://blog.golang.org/go-fonts for details.
|
|
||||||
|
|
||||||
They are licensed under the same open source license as the rest of the Go
|
|
||||||
project's software:
|
|
||||||
|
|
||||||
Copyright (c) 2016 Bigelow & Holmes Inc.. All rights reserved.
|
|
||||||
|
|
||||||
Distribution of this font is governed by the following license. If you do not
|
|
||||||
agree to this license, including the disclaimer, do not distribute or modify
|
|
||||||
this font.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation
|
|
||||||
and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of Google Inc. nor the names of its contributors may be
|
|
||||||
used to endorse or promote products derived from this software without
|
|
||||||
specific prior written permission.
|
|
||||||
|
|
||||||
DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
||||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
|
||||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
# Nerd Fonts
|
|
||||||
|
|
||||||
This is an archived font from the Nerd Fonts release v3.4.0.
|
|
||||||
|
|
||||||
For more information see:
|
|
||||||
* https://github.com/ryanoasis/nerd-fonts/
|
|
||||||
* https://github.com/ryanoasis/nerd-fonts/releases/latest/
|
|
||||||
|
|
||||||
# Go Mono
|
|
||||||
|
|
||||||
**Go** is a font created for the Go project.
|
|
||||||
|
|
||||||
https://go.dev/blog/go-fonts
|
|
||||||
|
|
||||||
For more information have a look at the upstream website: https://go.googlesource.com/image/
|
|
||||||
|
|
||||||
Download link https://go.googlesource.com/image/+/master/font/gofont/ttfs/
|
|
||||||
|
|
||||||
Version: 2.010
|
|
||||||
|
|
||||||
## Which font?
|
|
||||||
|
|
||||||
### TL;DR
|
|
||||||
|
|
||||||
* Pick your font family:
|
|
||||||
* If you are limited to monospaced fonts (because of your terminal, etc) then pick a font with `Nerd Font Mono` (or `NFM`).
|
|
||||||
* If you want to have bigger icons (usually around 1.5 normal letters wide) pick a font without `Mono` i.e. `Nerd Font` (or `NF`). Most terminals support this, but ymmv.
|
|
||||||
* If you work in a proportional context (GUI elements or edit a presentation etc) pick a font with `Nerd Font Propo` (or `NFP`).
|
|
||||||
|
|
||||||
### Ligatures
|
|
||||||
|
|
||||||
Ligatures are generally preserved in the patched fonts.
|
|
||||||
Nerd Fonts `v2.0.0` had no ligatures in the `Nerd Font Mono` fonts, this has been dropped with `v2.1.0`.
|
|
||||||
If you have a ligature-aware terminal and don't want ligatures you can (usually) disable them in the terminal settings.
|
|
||||||
|
|
||||||
### Explanation
|
|
||||||
|
|
||||||
Once you narrow down your font choice of family (`Droid Sans`, `Inconsolata`, etc) and style (`bold`, `italic`, etc) you have 2 main choices:
|
|
||||||
|
|
||||||
#### `Option 1: Download already patched font`
|
|
||||||
|
|
||||||
* For a stable version download a font package from the [release page](https://github.com/ryanoasis/nerd-fonts/releases)
|
|
||||||
* Or download the development version from the folders here
|
|
||||||
|
|
||||||
#### `Option 2: Patch your own font`
|
|
||||||
|
|
||||||
* Patch your own variations with the various options provided by the font patcher (i.e. not include all symbols for smaller font size)
|
|
||||||
|
|
||||||
For more information see: [The FAQ](https://github.com/ryanoasis/nerd-fonts/wiki/FAQ-and-Troubleshooting#which-font)
|
|
||||||
|
|
||||||
[SIL-RFN]:http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web_fonts_and_RFNs#14cbfd4a
|
|
||||||
|
|
||||||
+3
-3
@@ -15,8 +15,8 @@ import (
|
|||||||
"github.com/ktr0731/go-fuzzyfinder/matching"
|
"github.com/ktr0731/go-fuzzyfinder/matching"
|
||||||
)
|
)
|
||||||
|
|
||||||
//go:embed gomono-font/GoMonoNerdFontMono-Regular.ttf
|
//go:embed gomono-font/Go-Mono.ttf
|
||||||
var gomonoNerdFont_ttf []byte
|
var font_tff []byte
|
||||||
|
|
||||||
type State struct {
|
type State struct {
|
||||||
Font rl.Font
|
Font rl.Font
|
||||||
@@ -190,6 +190,6 @@ func initialize() State {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return State{
|
return State{
|
||||||
Font: rl.LoadFontFromMemory(".ttf", gomonoNerdFont_ttf, fontSize, nil),
|
Font: rl.LoadFontFromMemory(".ttf", font_tff, fontSize, nil),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user