Skip to content

Deduplicate some functions, and get access to static references

Vincent Cautaerts requested to merge vincent.cautaerts/font8x8-rs:master into master

Hi,

I needed access to the static font data, so I changed your crate. I didn't remove any existing API, but:

  • I gave access to static font data for a char
  • I made a method which search for a char in all unicode ranges

There was also a lot of code duplication, which I de-duplicated.

I'm not an expert in Rust; I hope that I didn't mess anything.

Tests are still running, with no modifications.

Also, it's my first merge request in gitlab, so sorry if something is not as it should.

Merge request reports