Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Change Label Size

16 views
Skip to first unread message

Rezwana Mahfuza

unread,
Feb 10, 2023, 7:12:55 PM2/10/23
to ogdf
Hi, I want to change the font size of the label of the node. However, it seems that I don't have the function available. I am using OGDF-snapshot library.

Dagobert Smart

unread,
Feb 13, 2023, 6:06:00 AM2/13/23
to ogdf
Hi,

the following works:

Graph G;
GraphAttributes GA(G, GraphAttributes::all ^ GraphAttributes::threeD);
...
GraphIO::SVGSettings settings;
settings.fontSize(200);
SvgPrinter printer(GA, settings);
std::ofstream ofs("test.svg");
printer.draw(ofs);


The following should work but does not due to a bug. I will fix it for the next release:

GraphIO::SVGSettings settings;
settings.fontSize(200);
GraphIO::drawSVG(GA, "test.svg", settings);

Best regards,
Dagobert
Reply all
Reply to author
Forward
0 new messages