gm
gm copied to clipboard
Can you tell me how to add italics and bold and whether the fill color is reversed
I need to draw a paragraph of text now, but it seems that the API doesn't use the options of italics and bold. What do I need to do? The other is that the RGBA I set when I use fill fill color is invalid, and then when I use hex8, I find that the fill color is the opposite. On the left is the browser. On the right is the composite
框选的颜色值分别是 #FFF200B5 #FFF200CF #FFF2004D #FFF20033 Normally, it's dark on the top and light on the bottom But the synthesis is the opposite. Or did I get GM wrong?
state .region(w, h, x, y) .stroke(color, 0) .fill(color) .font(path.resolve(this.fontsRootDir, 'msyh.ttf')) .fontSize(fontSize);
Fill color definitely seems reversed on some systems.
I'm guessing it depends on the system binary. On Windows GraphicsMagick, 1.3.35-Q16 colors worked for me normally
Deploying to Firebase Cloud Functions saw them invert and so I had to do fill('white')
to get black text and vice versa,