Git Product home page Git Product logo

fontfor's People

Contributors

7sdream avatar dependabot-preview[bot] avatar kianmeng avatar mfrischknecht avatar noraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

fontfor's Issues

[Feature] Adding an option to preview word/sentences

I know this is a little bit different from the original purpose of this, but I feel that with the ability to preview words/sentences this tool could become a great font previewer, much better than Gnome Specimen for example.

Fallback for missing full name(ID 4)

Now we uses the PostScript name(ID 6).

But maybe Family(ID 1) + SubFamily(ID 2) is a better option? Or if there a (de-facto) standard for this?

[Feature] Show help when args are empty

Run without args:

error: The following required arguments were not provided:
    <CHAR>

USAGE:
    fontfor-macOS [FLAGS] <CHAR>

For more information try --help

Run with --help

fontfor 0.3.0
7sDream <[email protected]>
find fonts which can show a specified character and preview them in terminal or browser

USAGE:
    fontfor-macOS [FLAGS] <CHAR>

FLAGS:
    -h, --help       Prints help information
    -p, --preview    Preview character use supported fonts in browser
    -t, --tui        Enable Terminal UI mode enable this mode will disable the --preview/-p and ignore --verbose/-v arg
    -V, --version    Prints version information
    -v, --verbose    Verbose mode, show all font styles

ARGS:
    <CHAR>    The character

Just show help when args are empty could be better

TUI as simple ... glyph render

So having a problem in one terminal where it wasn't rendering "๏€•" but in another it was. Just a font "path" issue. Either way I found out I have lots of options. but --preview doesn't really tell me what I'm looking at, and neither does --tui. What I'd really like is for tui to just show me the character as it would appear in the terminal in that font (if possible). Even better would be to be able to see them all at once, like if using --verbose just show me it as it would appear in that font at that size.

Filter list by font family name

Sometimes we can see lots of font face, for example run with character a.

We need a way to filter font faces we interested, both in normal list output and tui mode.

Build failure caused by `#[deny(warnings)]`

Pretty self-explanatory:

    Checking fontfor v0.4.2 (/home/leah/coding/fontfor)
error: fields `left` and `top` are never read
  --> src/rasterizer/bitmap.rs:23:9
   |
22 | pub struct Metrics {
   |            ------- fields in this struct
23 |     pub left: usize,
   |         ^^^^
24 |     pub top: usize,
   |         ^^^
   |
note: the lint level is defined here
  --> src/main.rs:20:9
   |
20 | #![deny(warnings)]
   |         ^^^^^^^^
   = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`

error: could not compile `fontfor` (bin "fontfor") due to 1 previous error

Please consider setting up some sort of CI system if you'd like to use #[deny(warnings)], so that this kind of problem gets caught before it gets into someone else's CI (in my case, NixOS's Hydra, which produces a build log like this).

Support color layers(COLR), embed image(sbix), bitmap(CBDT/EBDT) glyph

We only get glyph outline(glyf, CFF, CFF2), not any kind of glyph data table like bitmap/image/color/svg.

So there may be some font face which supports asked character, but the tui preview show empty result. But many fonts also provided a outline as fallback, so it's not very likely to happen.

Therefore, personally I consider it a low priority issue . If you meet this, feel free to comment here.

Binary release

Consider providing binray release with github actions ๐Ÿฐ

Glyph render in ASCII mode is too narrow

We use ASCII character in terminal as canvas pixel. Normally, the character w/h radio will around 1:2 for most fonts.

Render code should consider this, maybe repeat each character is good enough, a better option is set the right scale factor in rasterization step.

AUR Package

I went ahead and created an AUR package for Arch Linux users. I hope you don't mind.

If you're an Arch user, I don't mind making you a maintainer/co-maintainer.

Cheers.

Reporting a vulnerability

Hello!

I hope you are doing well!

We are a security research team. Our tool automatically detected a vulnerability in this repository. We want to disclose it responsibly. GitHub has a feature called Private vulnerability reporting, which enables security research to privately disclose a vulnerability. Unfortunately, it is not enabled for this repository.

Can you enable it, so that we can report it?

Thanks in advance!

PS: you can read about how to enable private vulnerability reporting here: https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository

RUSTSEC-2021-0139: ansi_term is Unmaintained

ansi_term is Unmaintained

Details
Status unmaintained
Package ansi_term
Version 0.12.1
URL ogham/rust-ansi-term#72
Date 2021-08-18

The maintainer has advised that this crate is deprecated and will not receive any maintenance.

The crate does not seem to have much dependencies and may or may not be ok to use as-is.

Last release seems to have been three years ago.

Possible Alternative(s)

The below list has not been vetted in any way and may or may not contain alternatives;

Dependency Specific Migration(s)

See advisory page for additional details.

Font size on browser preview

$ fontfor '๐Ÿ’ฉ' -p
Font(s) support the character "๐Ÿ’ฉ"(U+01F4A9, 128169, 0xF0 0x9F 0x92 0xA9):
Noto Color Emoji     with 1 style
Source Code Pro      with 14 styles
Source Code Variable with 14 styles
----------------------------------------
Please visit http://127.0.0.1:34659/ in your browser for preview
And press Enter after your finish...

The font size is pretty small.

image

It's 2px, (15px would be readable)

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.