@tilal.ahmad – one more thing:
If you get the list of fonts without specifying the fontsLocation
query parameter:
GET {{baseUrl}}/words/fonts/available
You only get the list of system fonts
{
"SystemFonts": [
{
"FontFamilyName": "DejaVu Sans",
"FullFontName": "DejaVu Sans Bold",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf"
},
{
"FontFamilyName": "DejaVu Sans",
"FullFontName": "DejaVu Sans",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
},
{
"FontFamilyName": "DejaVu Sans Mono",
"FullFontName": "DejaVu Sans Mono Bold",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf"
},
{
"FontFamilyName": "DejaVu Sans Mono",
"FullFontName": "DejaVu Sans Mono",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf"
},
{
"FontFamilyName": "DejaVu Serif",
"FullFontName": "DejaVu Serif Bold",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf"
},
{
"FontFamilyName": "DejaVu Serif",
"FullFontName": "DejaVu Serif",
"Version": "Version 2.37",
"FilePath": "/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf"
}
],
"RequestId": "56b8c1e3-ec68-4a42-9301-d5c73a0e43c5"
}
If you get the list of fonts specifying the fontsLocation
query parameter as fonts
it tries to get the fonts relative to the /data
folder:
GET {{baseUrl}}/words/fonts/available?fontsLocation=fonts
{
"Error": {
"Code": "InternalError",
"Message": "Error while get files in folder 'fonts' from storage: Error while get file list in folder 'fonts' from storage: Could not find a part of the path '/data/fonts'.",
"Description": "Operation Failed. Internal error.",
"InnerError": {
"Code": "InternalError",
"Message": "Error while get file list in folder 'fonts' from storage: Could not find a part of the path '/data/fonts'.",
"Description": "Operation Failed. Internal error.",
"InnerError": {
"Message": "Could not find a part of the path '/data/fonts'."
}
}
},
"RequestId": "c8969c6e-4056-4845-b0e7-19c6773b5df7"
}
If you get the list of fonts specifying the fontsLocation
query parameter as /fonts
it seems to look on the right location, but it returns a “file not found” error for the first font, although the font is physically in the /fonts
folder.:
GET {{baseUrl}}/words/fonts/available?fontsLocation=/fonts
{
"Error": {
"Code": "InternalError",
"Message": "Error while get files in folder '/fonts/' from storage: Could not find file '/NotoSans-ExtraCondensedSemiBold.ttf'.",
"Description": "Operation Failed. Internal error.",
"InnerError": {
"Message": "Could not find file '/NotoSans-ExtraCondensedSemiBold.ttf'."
}
},
"RequestId": "718809ab-b8bf-43b7-af89-96786d70100e"
}
Thanks!