diff --git a/raymenu/gomono-font/Go-Mono.ttf b/raymenu/gomono-font/Go-Mono.ttf new file mode 100644 index 0000000..71e3012 Binary files /dev/null and b/raymenu/gomono-font/Go-Mono.ttf differ diff --git a/raymenu/gomono-font/GoMonoNerdFont-Bold.ttf b/raymenu/gomono-font/GoMonoNerdFont-Bold.ttf deleted file mode 100644 index 4883762..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFont-Bold.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFont-BoldItalic.ttf b/raymenu/gomono-font/GoMonoNerdFont-BoldItalic.ttf deleted file mode 100644 index 2e24f9a..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFont-BoldItalic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFont-Italic.ttf b/raymenu/gomono-font/GoMonoNerdFont-Italic.ttf deleted file mode 100644 index 0b0deb9..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFont-Italic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFont-Regular.ttf b/raymenu/gomono-font/GoMonoNerdFont-Regular.ttf deleted file mode 100644 index 16a642c..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFont-Regular.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontMono-Bold.ttf b/raymenu/gomono-font/GoMonoNerdFontMono-Bold.ttf deleted file mode 100644 index 55ca751..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontMono-Bold.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontMono-BoldItalic.ttf b/raymenu/gomono-font/GoMonoNerdFontMono-BoldItalic.ttf deleted file mode 100644 index d27007a..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontMono-BoldItalic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontMono-Italic.ttf b/raymenu/gomono-font/GoMonoNerdFontMono-Italic.ttf deleted file mode 100644 index 0be8766..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontMono-Italic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontMono-Regular.ttf b/raymenu/gomono-font/GoMonoNerdFontMono-Regular.ttf deleted file mode 100644 index afbd8de..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontMono-Regular.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontPropo-Bold.ttf b/raymenu/gomono-font/GoMonoNerdFontPropo-Bold.ttf deleted file mode 100644 index b96434b..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontPropo-Bold.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontPropo-BoldItalic.ttf b/raymenu/gomono-font/GoMonoNerdFontPropo-BoldItalic.ttf deleted file mode 100644 index d4e8a19..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontPropo-BoldItalic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontPropo-Italic.ttf b/raymenu/gomono-font/GoMonoNerdFontPropo-Italic.ttf deleted file mode 100644 index e9d59b2..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontPropo-Italic.ttf and /dev/null differ diff --git a/raymenu/gomono-font/GoMonoNerdFontPropo-Regular.ttf b/raymenu/gomono-font/GoMonoNerdFontPropo-Regular.ttf deleted file mode 100644 index 0f0f2b2..0000000 Binary files a/raymenu/gomono-font/GoMonoNerdFontPropo-Regular.ttf and /dev/null differ diff --git a/raymenu/gomono-font/LICENSE.txt b/raymenu/gomono-font/LICENSE.txt deleted file mode 100644 index 7043c36..0000000 --- a/raymenu/gomono-font/LICENSE.txt +++ /dev/null @@ -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. diff --git a/raymenu/gomono-font/README.md b/raymenu/gomono-font/README.md deleted file mode 100644 index 0cbcdda..0000000 --- a/raymenu/gomono-font/README.md +++ /dev/null @@ -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 - diff --git a/raymenu/main.go b/raymenu/main.go index d71a4f3..a910b3e 100644 --- a/raymenu/main.go +++ b/raymenu/main.go @@ -15,8 +15,8 @@ import ( "github.com/ktr0731/go-fuzzyfinder/matching" ) -//go:embed gomono-font/GoMonoNerdFontMono-Regular.ttf -var gomonoNerdFont_ttf []byte +//go:embed gomono-font/Go-Mono.ttf +var font_tff []byte type State struct { Font rl.Font @@ -190,6 +190,6 @@ func initialize() State { ) return State{ - Font: rl.LoadFontFromMemory(".ttf", gomonoNerdFont_ttf, fontSize, nil), + Font: rl.LoadFontFromMemory(".ttf", font_tff, fontSize, nil), } }