Description
Delete a font from a project.
URL
http://api.fonts.com/rest/{format}/Fonts/
Required Header Parameters
-
authorization
Hashed authorization key
-
appkey
Your application’s key
Required Query String Parameters
-
wfspid
The project id
-
wfsfid
The font id ( font to be deleted )
Optional Query String Parameters
-
wfsnopublish
This command automatically calls Publish once it is complete, which takes multiple seconds. To prevent this, use this parameter, set it to 1, and use Publish after all changes are made.
-
wfspstart
starting record requested (zero-based)
-
wfsplimit
# of records requested
Response variables
-
ProjectID
Project ID number
-
Message
If the response is successful then the “message” parameter of the response will be “Success” and if there is some error or failure then the “message” parameter will be the error message.
-
Font: FontID
Identifier of the font. Every font in the Fonts.com Web Fonts service has a unique FontID.
-
Font: FontName
Display name of the font.
-
Font: FontPreviewTextLong
The long text string used to show the appearance of the font.
-
Font: FontFoundryName
The name of font designer or company.
-
Font: FontCSSName
The font-family name of the font.
-
Font: FontLanguage
The language supported by the font.
-
Font: FontSizeThe size of the font file.
-
Font: CDNKey
The authentication key for fetching the font file from the content distribution network (CDN).
-
Font: TTF
The font’s TrueType® font file ID. TrueType fonts can be used in all major browsers except for the Microsoft Internet Explorer® browser.
-
Font: EOT
The font’s Embedded OpenType Font file ID. EOT fonts are served exclusively to Internet Explorer browsers.
-
Font: WOFF
The font’s Web Open Font Format file ID. It is compatible with Firefox 3.6 and up. The WOFF file format is expected to eventually be compatible with all major browsers.
-
Font: SVG
The font’s Scalable Vector Graphics font file ID. This format is compatible with Apple iPhone, iPad and iPod touch devices.
-
Font: EnableSubsetting
Indicates that a font should be dynamically subsetted in the website. Fonts with very large characters sets such as fonts support Chinese, Japanese and Korean writing systems can also have very large file sizes. Because it may take a long time to download a large file, fonts supporting these languages will be marked as EnableSubsetted fonts. The value will be either T for true or F for False.
-
TotalRecords
Total number of records
-
PageStart
starting record requested (zero-based)
-
PageLimit
# of records requested
XML Response
<Fonts>
<ProjectID>7bff9927-7964-4f6f-a132-adcae35ad51f</ProjectID>
<Message>Success</Message>
<Font>
<FontID>717698</FontID>
<FontName>Haarlem Black</FontName>
<FontPreviewTextLong>Quick Brown Fox Jumped Over The Lazy Dog</FontPreviewTextLong>
<FontFondryName>Monotype Imaging</FontFondryName>
<FontCSSName>Haarlem W01 Black</FontCSSName>
<FontLanguage></FontLanguage>
<FontSize></FontSize>
<CDNKey>d44f19a684109620e484147daf90e818082784eafd613082f04a2901e2fc90e07abf26e09077eeb422c4d34d256883d0</CDNKey>
<TTF>13425481-9ba7-47e0-ac3f-535bd4202000</TTF>
<EOT>eda0fd50-d523-418c-adfa-eafb47aaa57a</EOT>
<SVG>a4543614-4294-43bc-8480-ae21661ce4cf</SVG>
<WOFF>4fbcbe0b-8c97-4ce2-8bff-419f957a8981</WOFF>
<EnableSubsetting>false</EnableSubsetting>
</Font>
<TotalRecords>1</TotalRecords>
<PageStart>0</PageStart>
<PageLimit>10</PageLimit>
</Fonts>
json Response
{
"Fonts":{
"Font":{
"CDNKey":"d44f19a684109620e484147daf90e818082784eafd613082f04a2901e2fc90e07abf26e09077eeb422c4d34d256883d0",
"EnableSubsetting":"false",
"EOT":"eda0fd50-d523-418c-adfa-eafb47aaa57a",
"FontCSSName":"Haarlem W01 Black",
"FontFondryName":"Monotype Imaging",
"FontID":"717698",
"FontLanguage":null,
"FontName":"Haarlem Black",
"FontPreviewTextLong":"Quick Brown Fox Jumped Over The Lazy Dog",
"FontSize":null,
"SVG":"a4543614-4294-43bc-8480-ae21661ce4cf",
"TTF":"13425481-9ba7-47e0-ac3f-535bd4202000",
"WOFF":"4fbcbe0b-8c97-4ce2-8bff-419f957a8981"
},
"Message":"Success",
"PageLimit":"10",
"PageStart":"0",
"ProjectID":"7bff9927-7964-4f6f-a132-adcae35ad51f",
"TotalRecords":"1"
}
}