This commit is contained in:
Bernard Xie 2023-02-28 13:46:02 -08:00
parent a85a225c73
commit f8512a95a7
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -111,6 +111,13 @@ func Append(diagram *d2target.Diagram, ruler *textmeasure.Ruler, in []byte) []by
} }
if !strings.Contains(svg, `font-family: "font-regular"`) { if !strings.Contains(svg, `font-family: "font-regular"`) {
// if fillRGB.IsLight() {
// g.pdf.SetTextColor(10, 15, 37) // steel-900
// } else {
// g.pdf.SetTextColor(255, 255, 255)
// }
appendix += fmt.Sprintf(`<style type="text/css"><![CDATA[ appendix += fmt.Sprintf(`<style type="text/css"><![CDATA[
.text { .text {
font-family: "font-regular"; font-family: "font-regular";