userAgent.setLogger(this.svg.getLogger());
BridgeContext ctx = new BridgeContext(userAgent);
GVTBuilder builder = new GVTBuilder();
TextPainter textPainter = null;
if (strokeSVGText) {
textPainter = new StrokingTextPainter();
} else {
textPainter = new PDFTextPainter(fontConsumer, this.svg.getLogger());
}
ctx.setTextPainter(textPainter);