This commit is contained in:
Bernard Xie 2023-02-28 13:58:42 -08:00
parent 731a29bd07
commit 51d0000e0f
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C

View file

@ -120,13 +120,6 @@ 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";