Font table
"Sharmila Pandith"<[email protected]> Wed, 2 Oct 2002 22:09:42 UT
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
When JFor converts font info, it puts a semicolon after fonttbl and not after each fontname
For ex:
{\fonttbl;
{\f0 arial}
{\f1 symbol}
.....
}
I looked at the format for fonttbl in rtf spec 1.6 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnrtfspec/html/rtfspec_2.asp for Font Table. It specifies that there should be a ";" after each font and not after fonttbl.
Here is excerpt from the RTF 1.6 spec for Font table:
Font Table
The \fonttbl control word introduces the font table group. Unique \fN control words define each font available in the document, and are used to reference that font throughout the document. This group has the syntax listed in the following table.
<fonttbl> '{' \fonttbl (<fontinfo> | ('{' <fontinfo> '}'))+ '}'
<fontinfo> <fontnum> <fontfamily> <fcharset>? <fprq>? <panose>? <nontaggedname>? <fontemb>? <codepage>? <fontname> <fontaltname>? ';'
<fontnum> \f
<fontfamily> \fnil | \froman | \fswiss | \fmodern | \fscript | \fdecor | \ftech | \fbidi
<fcharset> \fcharset
<fprq> \fprq
<panose> <data>
<nontaggedname> \*\fname
<fontname> #PCDATA
<fontaltname> '{\*' \falt #PCDATA '}'
<fontemb> '{\*' \fontemb <fonttype> <fontfname>? <data>? '}'
<fonttype> \ftnil | \fttruetype
<fontfname> '{\*' \fontfile <codepage>? #PCDATA '}'
<codepage> \cpg
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf