MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / PSL_makefont

Function PSL_makefont

src/postscriptlight.c:5011–5016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5009}
5010
5011char * PSL_makefont (struct PSL_CTRL *PSL, double size, double rgb[]) {
5012 /* Creates a text string with the corresponding PS command to set the font (current font) */
5013 static char buffer[PSL_BUFSIZ];
5014 sprintf (buffer, "%s %d F%d", psl_putcolor (PSL, rgb, 0), psl_ip (PSL, size), PSL->current.font_no);
5015 return (buffer);
5016}
5017
5018char * PSL_makefontsize (struct PSL_CTRL *PSL, double size) {
5019 /* Creates a text string with the corresponding PS command to set the font (current font) with no color info */

Callers 2

GMT_pstextFunction · 0.85

Calls 2

psl_putcolorFunction · 0.85
psl_ipFunction · 0.85

Tested by

no test coverage detected