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

Function PSL_settextmode

src/postscriptlight.c:5032–5047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5030}
5031
5032int PSL_settextmode (struct PSL_CTRL *PSL, int mode) {
5033 /* Change from laissez-faire to replacing hyphens with minus sign char code */
5034 switch (mode) {
5035 case PSL_TXTMODE_HYPHEN:
5036 PSL->current.use_minus = PSL_TXTMODE_HYPHEN;
5037 break;
5038 case PSL_TXTMODE_MINUS:
5039 PSL->current.use_minus = PSL_TXTMODE_MINUS;
5040 break;
5041 default:
5042 PSL_message (PSL, PSL_MSG_ERROR, "Error: bad argument passed to PSL_settextmode (%d)!\n", mode);
5043 return (PSL_BAD_FLAG);
5044 break;
5045 }
5046 return (PSL_NO_ERROR);
5047}
5048
5049int PSL_setdefaults (struct PSL_CTRL *PSL, double xyscales[], double page_rgb[], char *encoding) {
5050 /* Changes the standard PSL defaults for:

Callers 9

gmtplot_map_annotateFunction · 0.85
gmtplot_draw_mag_roseFunction · 0.85
gmt_xy_axisFunction · 0.85
gmt_contlabel_plotFunction · 0.85
GMT_pstextFunction · 0.85
psscale_draw_colorbarFunction · 0.85

Calls 1

PSL_messageFunction · 0.85

Tested by

no test coverage detected