diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-17 08:58:38 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-17 08:58:38 +0000 |
commit | fa1bba3fcca3fc1492891af087fa4cb193aa1262 (patch) | |
tree | c8d6c238a9db69580bd5194cac0e226de99840bf | |
parent | b3d68ae1f8cc9292585175caa453fc9b55061115 (diff) |
automatic import of cascadia-code-nerd-fonts-monoopeneuler24.03_LTS
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | cascadia-code-nerd-fonts-mono.spec | 51 | ||||
-rw-r--r-- | fontconfig.conf | 22 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/CascadiaCode.zip diff --git a/cascadia-code-nerd-fonts-mono.spec b/cascadia-code-nerd-fonts-mono.spec new file mode 100644 index 0000000..4ec3d0c --- /dev/null +++ b/cascadia-code-nerd-fonts-mono.spec @@ -0,0 +1,51 @@ +Version: 3.0.2 +Release: 1 +URL: https://github.com/ryanoasis/nerd-fonts +Summary: A fun, new monospaced font that includes programming ligatures and is designed to enhance the modern look and feel of the Windows Terminal +License: LICENSE +Name: cascadia-code-nerd-fonts-mono + +Source0: https://github.com/ryanoasis/nerd-fonts/releases/download/v%{version}/CascadiaCode.zip +Source1: fontconfig.conf + +Requires: fontconfig +BuildArch: noarch +BuildRequires: fontpackages-devel + +%description +Cascadia Code is a mono-spaced font designed to provide a fresh experience for +command line experiences and code editors. Notably, it supports programming +ligatures. + +%prep +%autosetup -c +%{__rm} -vfr ./*Windows*.otf + + +%install +%{__install} -m 755 -d %{buildroot}%{_fontdir} +%{__install} -m 644 *.ttf %{buildroot}%{_fontdir} +%{__install} -m 755 -d %{buildroot}%{_fontconfig_templatedir} +%{__install} -m 755 -d %{buildroot}%{_fontconfig_confdir}/ +%{__install} -m 644 %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/60-cascadia-code-nfm.conf +ln -fs %{_fontconfig_templatedir}/60-cascadia-code-nfm.conf %{buildroot}%{_fontconfig_confdir}/ + +%post +/usr/bin/fc-cache -f + + +%postun +/usr/bin/fc-cache -f + +%files +%doc LICENSE +%doc readme.md +%dir %{_fontdir} +%{_fontdir}/*.ttf +%{_fontconfig_templatedir}/*.conf +%{_fontconfig_confdir}/*.conf + + +%changelog +* Sun Nov 13 2022 Astrawan Wayan <astrawan@icloud.com> - 2.2.2-1 +- Initial package diff --git a/fontconfig.conf b/fontconfig.conf new file mode 100644 index 0000000..1a31641 --- /dev/null +++ b/fontconfig.conf @@ -0,0 +1,22 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> +<fontconfig> + <alias> + <family>CaskaydiaCove Nerd Font</family> + <default> + <family>monospace</family> + </default> + </alias> + <alias> + <family>CaskaydiaCove Nerd Font Mono</family> + <default> + <family>monospace</family> + </default> + </alias> + <alias> + <family>monospace</family> + <prefer> + <family>CaskaydiaCove Nerd Font Mono</family> + </prefer> + </alias> +</fontconfig> @@ -0,0 +1 @@ +5195c0849587945a418db801a411b813 CascadiaCode.zip |