mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-01-06 00:28:49 +01:00
Add fonts support
This commit is contained in:
parent
a649d23ff8
commit
4aee1f7fcc
@ -54,6 +54,7 @@ For example, you only need either `elinks`, `lynx` or
|
||||
| archive | `atool` |
|
||||
| diff | `colordiff` `delta` `diff-so-fancy` |
|
||||
| directory | `ls` |
|
||||
| font | `fontimage` |
|
||||
| gpg-encrypted | `gpg` |
|
||||
| html | `elinks` `lynx` `w3m` |
|
||||
| image | `ueberzug` `chafa` |
|
||||
|
@ -94,6 +94,9 @@ T}
|
||||
directory T{
|
||||
ls
|
||||
T}
|
||||
font T{
|
||||
fontimage
|
||||
T}
|
||||
gpg-encrypted T{
|
||||
gpg
|
||||
T}
|
||||
|
@ -44,6 +44,8 @@ Preview b_previews[] = {
|
||||
PR(NULL, "text", "x-diff", colordiff, PREV_ATTR_NONE),
|
||||
PR(NULL, "text", "x-patch", colordiff, PREV_ATTR_NONE),
|
||||
|
||||
PR(NULL, "font", NULL, font, PREV_ATTR_NONE),
|
||||
|
||||
PR("tar.gz", NULL, NULL, atool, PREV_ATTR_NONE),
|
||||
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
|
||||
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
|
||||
|
8
sh/prev/font.sh
Normal file
8
sh/prev/font.sh
Normal file
@ -0,0 +1,8 @@
|
||||
# font: fontimage
|
||||
|
||||
font() {
|
||||
fontimage -o "$cache_f.png" "$f" &&
|
||||
mv -- "$cache_f.png" "$cache_f"
|
||||
}
|
||||
|
||||
convert_and_show_image font
|
Loading…
Reference in New Issue
Block a user