Giter Club home page Giter Club logo

Comments (5)

htdebeer avatar htdebeer commented on June 11, 2024

Sort of, yes. The problem is that some letters are wider or taller than others, so some extra sizing and alignment is needed. More importantly, though, this should be different for each font because the size and shape of these letters is different in each font. In the SVG Cards SVG file, we use the free font DejaVu Serif. This font is chosen because it is the free font that matches the font commonly used in the French representation best. If your SVG render engine cannot find this font, it replaces it by something else. There is no guarantee that this other font will look good at all.

Possible solutions:

  • I do recommend installing and using DejaVu Serif.
  • Try to use a different serif font
  • Adapt the sizing and alignment of the letters A, K, Q, and J to match the font you are using

from svg-cards.

ThorvaldAagaard avatar ThorvaldAagaard commented on June 11, 2024

Thank you. I have added the font to my application

If you are interested I have added a fill color to all cards, so it now is possible to color the suits
image

Let me know if you want a copy of that

It should probably just inherit the color when referencing the card, but I did not know how to make a default fill.

I also change the 10 to T as that works better in an application

from svg-cards.

htdebeer avatar htdebeer commented on June 11, 2024

That's some very different colors you've got there! With SVG Cards I am trying to recreate the French card representation as true as possible. However, I can understand others being interested in a feature like this. If you want, I can add a section to the README listing alternative representations and applications like your's.

from svg-cards.

ThorvaldAagaard avatar ThorvaldAagaard commented on June 11, 2024

I haven't invented the colors :-)
https://en.wikipedia.org/wiki/Four-color_deck
There is a sneak preview of my site at https://snippen.dk, but I will give you the final website for the readme, when I'm done

At the end the colors will probably be some setting the user can change

from svg-cards.

htdebeer avatar htdebeer commented on June 11, 2024

Interesting! I have never seen other colored decks and just assumed this was the norm. Talking about being cultural blind!

I'm looking forward for your final application. Maybe I should invite others to send in hyperlinks and descriptions to their applications as well. To be honest, I am sort of curious to know what people have build with these cards.

from svg-cards.

Related Issues (5)

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.