MapScale Docs
•••
MapScale API
GET/fonts/v1/{fontstack}/{rangeFile}

Fetch a glyph range

Return a font glyph range used by MapLibre to draw map labels, including Thai text.

LIVE API PLAYGROUND

Sign in or create an account

Continue to run live requests directly from the docs.

Sends this request to the live API and shows the real response.

Parameters

Equivalent request
curl \
  -H "X-MapScale-Key: $MAPSCALE_API_KEY" \
  "https://api.mapscale.io/fonts/v1/Noto%20Sans%20Thai%20Regular/0-255.pbf"
Response
Default response
{
  "status": "302",
  "contentType": null,
  "description": "Redirect to the glyph asset host."
}

Responses

302Redirect to the glyph asset host.
400Invalid glyph range.application/json
401mapscale/effect-api/UnauthorizedFailureapplication/json
403mapscale/effect-api/ForbiddenFailureapplication/json
429mapscale/effect-api/RateLimitedFailureapplication/json
500mapscale/effect-api/MiddlewareInternalFailureapplication/json
503Asset host not configured yet. | mapscale/effect-api/UpstreamUnavailableFailureapplication/json

On this page