g-battaglia / kerykeion

Data driven Astrology 💫
Kerykeion is a python library for astrology. It can generate SVG charts and extract all data about a birthchart, a synastry chart and a transit chart.
https://kerykeion.net
GNU Affero General Public License v3.0
295 stars 103 forks source link

How can I change a font of text in a chart, if I can at all? #128

Open D1fify opened 3 weeks ago

g-battaglia commented 3 weeks ago

Hi, the chart is just a SVG, so if you want to change it's font family you can add to the SVG file basic CSS, like that:

svg {
    font-family: "Roboto", sans-serif;
}
D1fify commented 3 weeks ago

Hi, the chart is just a SVG, so if you want to change it's font family you can add to the SVG file basic CSS, like that:

Where should I add it?

kubow commented 3 weeks ago

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS