Everything Fonts Font API gives you API access to fonts, font properties and font tools. You can get all the details about font upto the individual glyph level and do amazing things with it. This is a first of its kind on the cloud. Font conversion API allows you to easily convert between various font formats using REST API. ttf,otf,svg,pfa,pfb, svg, woff,woff2, eot, ufo and several other formats are supported. Here are the individual API links: ## Font Management API ## All the things you need to manage a font on the cloud. Click here to subscribe ## @font-face generation API ## Easily generate @font-face kit from variety of font formats. This service lets you generate ttf, otf, svg and woff formats that the browsers understand along with the relevant CSS definition. Click here to subscribe ## Font Coversion API ## Convert from one font format to another. Many many font format conversions are supported. Click here to subscribe ## Font Subsetting API ## Subset fonts easily. You can specify unicode range or individual characters for subsettings. Click here to subscribe ## Font Hinting API ## Font hinting on the cloud. Multiple hinting schemes supported. Click here to subscribe
This Python package is automatically generated by the Swagger Codegen project:
- API version: 2.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen For more information, please visit https://everythingfonts.com/
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import swagger_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: X-EverythingFonts-Api-Secret
configuration = swagger_client.Configuration()
configuration.api_key['X-EverythingFonts-Api-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-EverythingFonts-Api-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ConversionApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Schedule ID
try:
api_instance.font_convert_schedule_get(id)
except ApiException as e:
print("Exception when calling ConversionApi->font_convert_schedule_get: %s\n" % e)
# Configure API key authorization: X-EverythingFonts-Api-Secret
configuration = swagger_client.Configuration()
configuration.api_key['X-EverythingFonts-Api-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-EverythingFonts-Api-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ConversionApi(swagger_client.ApiClient(configuration))
fontid = 'fontid_example' # str | Font ID
targetformat = 'targetformat_example' # str | Target Format to convert to
try:
api_instance.font_convert_schedule_put(fontid, targetformat)
except ApiException as e:
print("Exception when calling ConversionApi->font_convert_schedule_put: %s\n" % e)
# Configure API key authorization: X-EverythingFonts-Api-Secret
configuration = swagger_client.Configuration()
configuration.api_key['X-EverythingFonts-Api-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-EverythingFonts-Api-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ConversionApi(swagger_client.ApiClient(configuration))
sourceformat = 'sourceformat_example' # str | Source Format
try:
api_instance.font_convert_targets_get(sourceformat)
except ApiException as e:
print("Exception when calling ConversionApi->font_convert_targets_get: %s\n" % e)
# Configure API key authorization: X-EverythingFonts-Api-Secret
configuration = swagger_client.Configuration()
configuration.api_key['X-EverythingFonts-Api-Secret'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-EverythingFonts-Api-Secret'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.ConversionApi(swagger_client.ApiClient(configuration))
id = 'id_example' # str | Font ID
targetformat = 'targetformat_example' # str | Target format you want to convert to
binaryresult = false # bool | Return converted file in binary format, the default is base64 json response. (optional) (default to false)
try:
api_instance.font_id_convert_get(id, targetformat, binaryresult=binaryresult)
except ApiException as e:
print("Exception when calling ConversionApi->font_id_convert_get: %s\n" % e)
All URIs are relative to http://font.rest
Class | Method | HTTP request | Description |
---|---|---|---|
ConversionApi | font_convert_schedule_get | GET /font/convert/schedule | |
ConversionApi | font_convert_schedule_put | PUT /font/convert/schedule | |
ConversionApi | font_convert_targets_get | GET /font/convert/targets | |
ConversionApi | font_id_convert_get | GET /font/{id}/convert | |
FontApi | font_fontid_glyph_id_get | GET /font/{fontid}/glyph/{id} | |
FontApi | font_fontid_glyph_id_image_get | GET /font/{fontid}/glyph/{id}/image | |
FontApi | font_fontid_glyph_list_get | GET /font/{fontid}/glyph/list | |
FontApi | font_get | GET /font | |
FontApi | font_id_coverage_get | GET /font/{id}/coverage | |
FontApi | font_id_file_fileid_get | GET /font/{id}/file/{fileid} | |
FontApi | font_id_files_get | GET /font/{id}/files | |
FontApi | font_id_get | GET /font/{id} | |
FontApi | font_id_image_get | GET /font/{id}/image | |
FontApi | font_id_license_get | GET /font/{id}/license | |
FontApi | font_id_name_get | GET /font/{id}/name | |
FontManagementApi | font_delete | DELETE /font | |
FontManagementApi | font_list_get | GET /font/list | |
FontManagementApi | font_post | POST /font | |
HintingApi | font_id_hint_get | GET /font/{id}/hint | |
SubsetApi | font_id_subset_get | GET /font/{id}/subset | |
SubsetApi | font_subset_ranges_get | GET /font/subset/ranges | |
FontFaceGenerationApi | font_convert_fontface_schedule_get | GET /font/convert/fontface/schedule | |
FontFaceGenerationApi | font_convert_fontface_schedule_put | PUT /font/convert/fontface/schedule | |
FontFaceGenerationApi | font_id_convert_fontface_get | GET /font/{id}/convert/fontface |
- Type: API key
- API key parameter name: X-EverythingFonts-Api-Secret
- Location: HTTP header