List fonts
GET
/v1/fonts
curl -H "X-Api-Key: $KEY" http://localhost:9027/v1/fontsconst response = await fetch('http://localhost:9027/v1/fonts', { headers: { 'X-Api-Key': process.env.KEY },});if (!response.ok) throw new Error(await response.text());console.log(await response.json());import os
import requests
response = requests.get( "http://localhost:9027/v1/fonts", headers={"X-Api-Key": os.environ["KEY"]},)response.raise_for_status()print(response.json())package main
import ( "io" "log" "net/http" "os")
func main() { request, err := http.NewRequest("GET", "http://localhost:9027/v1/fonts", nil) if err != nil { log.Fatal(err) } request.Header.Set("X-Api-Key", os.Getenv("KEY"))
response, err := http.DefaultClient.Do(request) if err != nil { log.Fatal(err) } defer response.Body.Close() if response.StatusCode >= 300 { message, _ := io.ReadAll(response.Body) log.Fatalf("%s: %s", response.Status, message) } if _, err := io.Copy(os.Stdout, response.Body); err != nil { log.Fatal(err) }}Lists the fonts LibreOffice and the PDF stage can use.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”The loaded fonts
Media typeapplication/json
Array<object>
object
family
required
string
file
required
The file’s base name.
string
id
The stored font this face belongs to, for deleting it. Absent for fonts in the image or the mounted directory.
string | null
mounted
required
True when it came from the mounted fonts directory.
boolean
style
required
string
weight
required
integer format: int32
Example generated
[ { "family": "example", "file": "example", "id": "example", "mounted": true, "style": "example", "weight": 1 }]