8.0

Table Of Contents
fontname
Specifies the font to be applied to new text flow. When this parameter is used, QuarkXPress Server
ignores the original font of the text box and inserts the new text with the font specified by the parameter.
Parameters
[boxid/boxname]:fo
ntname
string
Works with the combination of boxid
and boxname. Replaces the font.
This parameter can also be used with
dataimport:
[boxname]fontname@dataimport=<font
name>
Response
Preview of project with font applied on new text in text box.
Alerts
The specified font is
not available.
This alert is displayed if you specify a font that is unavailable.
Logs
If the project is successfully rendered, a transaction success message is written to
the QuarkXPress Server Transaction Log file. The transaction entry consists of the
date and time of the request, render type, project name, type of response
produced by the server, size of response returned in bytes, and client IP address.
The following is a sample of a transaction entry:
12/2/2005 16:24:13 - project2.qxp - Type: image/jpeg - Size: 11380 - Client:
127.0.0.1
If an error occurs, the error message is written to the QuarkXPress Server Error
Log. The transaction entry in the error log contains the date and time of the
request, the error code, and the error message. The following is a sample of an
error log transaction entry:
12/2/2005 16:16:26 - Error - Error Code: -43 - File not found.
Example GET
URL
This URL applies Comic Sans MS font to text flown into a box called story:
http://localhost:8080/png/sample.qxp?Story=This is top
story&Story:fontname=Comic Sans MS
Example, Object
Model
Request Object Name: RequestParameters
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName = this.DocumentSettings1.documentName.Text;
//STEP 2(SPECIFIC TO REQUESTS):Create the fontname renderer request and
embed it in
RequestParameters request = new RequestParameters();
NameValueParam nameValue1 = new NameValueParam();
nameValue1.paramName = this.boxname.Text;
if(!this.boxvalue1.Text.Equals(""))
nameValue1.textValue = this.fontname.Text;
request.params = new NameValueParam[]{nameValue1};
rc.request = request;
//Create the service and call it with QRequestContext object
QManagerSDKSvcService svc = new QManagerSDKSvcService();
sdk.QContentData qc = svc.processRequest(rc);
Page 82