MCPcopy Index your code
hub / github.com/MapServer/MapServer / msGetTruetypeTextBBoxKml

Function msGetTruetypeTextBBoxKml

mapkml.cpp:141–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139
140
141int msGetTruetypeTextBBoxKml(rendererVTableObj *r,char *font, double size, char *string,
142 rectObj *rect, double **advances)
143{
144 rect->minx=0.0;
145 rect->maxx=0.0;
146 rect->miny=0.0;
147 rect->maxy=0.0;
148 if (advances) {
149 int numglyphs = msGetNumGlyphs(string);
150 *advances = (double*) msSmallMalloc(numglyphs * sizeof (double));
151 for(int i=0;i<numglyphs;i++) {
152 (*advances)[i] = size;
153 }
154 }
155 return MS_SUCCESS;
156}
157
158int msStartNewLayerKml(imageObj *img, mapObj *map, layerObj *layer)
159{

Callers

nothing calls this directly

Calls 2

msGetNumGlyphsFunction · 0.85
msSmallMallocFunction · 0.85

Tested by

no test coverage detected