mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 09:58:05 +02: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` |
|
| archive | `atool` |
|
||||||
| diff | `colordiff` `delta` `diff-so-fancy` |
|
| diff | `colordiff` `delta` `diff-so-fancy` |
|
||||||
| directory | `ls` |
|
| directory | `ls` |
|
||||||
|
| font | `fontimage` |
|
||||||
| gpg-encrypted | `gpg` |
|
| gpg-encrypted | `gpg` |
|
||||||
| html | `elinks` `lynx` `w3m` |
|
| html | `elinks` `lynx` `w3m` |
|
||||||
| image | `ueberzug` `chafa` |
|
| image | `ueberzug` `chafa` |
|
||||||
|
@ -94,6 +94,9 @@ T}
|
|||||||
directory T{
|
directory T{
|
||||||
ls
|
ls
|
||||||
T}
|
T}
|
||||||
|
font T{
|
||||||
|
fontimage
|
||||||
|
T}
|
||||||
gpg-encrypted T{
|
gpg-encrypted T{
|
||||||
gpg
|
gpg
|
||||||
T}
|
T}
|
||||||
|
@ -44,6 +44,8 @@ Preview b_previews[] = {
|
|||||||
PR(NULL, "text", "x-diff", colordiff, PREV_ATTR_NONE),
|
PR(NULL, "text", "x-diff", colordiff, PREV_ATTR_NONE),
|
||||||
PR(NULL, "text", "x-patch", 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("tar.gz", NULL, NULL, atool, PREV_ATTR_NONE),
|
||||||
PR("tgz", NULL, NULL, atool, PREV_ATTR_NONE),
|
PR("tgz", 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…
x
Reference in New Issue
Block a user