-
Notifications
You must be signed in to change notification settings - Fork 136
Description
I'm doing a bunch of work to update all the cards with the latest errata, and make other improvements (see #574, among others). One thing that's bugging me is the way the icons for debt, coins, potions, and VP look, and I'd love for someone to give me a hand with them.
Currently, the code uses the files in https://github.com/sumpfork/dominiontabs/tree/master/src/domdiv/images for the images that are rendered inside the card text and rules.
For the Cost icon on the top of the tab, it always uses https://github.com/sumpfork/dominiontabs/blob/master/src/domdiv/images/coin.png (which is higher resolution than the -small images), and then overlays the number on top of it, in the same font used for dominion, with a bunch of fiddly little optimizations for handling things like "the number 4 is slightly smaller". It looks beautiful. Unfortunately, the code would be quite hard to reuse in a scenario where we don't know the exact size or placement ahead of time (when we're putting them in the middle of a sentence in the rules).
I'm hoping someone would be willing to:
- Generate new images for the cost icons for each coin and debt value, that are square (don't have the extra whitespace currently on the right-hand side of most of them) and have a transparent background.
- A slightly higher-resolution base debt icon would be great. I think there's one on the dominionstrategy wiki that we could use.
- The easiest "dumb way" I can think of to do this would be to install the custom fonts, edit the card costs in the card db so you could get one card with each cost, run the code with
--tabs-only --no-tab-artwork --cardlist some-file.txt --order cost, and then snip out the rendered images from the PDF.
- Re-do the VP symbol images, which currently look cut off on the bottom, and look especially bad when drawn large on e.g. Province.
It's possible I might get around to doing this myself eventually, but if anyone is willing to help out, it would be great.
I tried reusing the images like https://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/24px-Coin3.png, but the ones this code renders for cost looked a lot better.