?? type1font.html
字號:
</TABLE>
<A NAME="getRawWidth(int, java.lang.String)"><!-- --></A><H3>
getRawWidth</H3>
<PRE>
protected int <B>getRawWidth</B>(int c, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> name)</PRE>
<DL>
<DD>Gets the width from the font according to the <CODE>name</CODE> or, if the <CODE>name</CODE> is null, meaning it is a symbolic font, the char <CODE>c</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getRawWidth(int, java.lang.String)">getRawWidth</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - the char if the font is symbolic<DD><CODE>name</CODE> - the glyph name<DT><B>Returns:</B><DD>the width of the char</DL>
</DD>
</DL>
<HR>
<A NAME="getKerning(char, char)"><!-- --></A><H3>
getKerning</H3>
<PRE>
public int <B>getKerning</B>(char char1, char char2)</PRE>
<DL>
<DD>Gets the kerning between two Unicode characters. The characters are converted to names and this names are used to find the kerning pairs in the <CODE>HashMap</CODE> <CODE>KernPairs</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getKerning(char, char)">getKerning</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>char1</CODE> - the first char<DD><CODE>char2</CODE> - the second char<DT><B>Returns:</B><DD>the kerning to be applied</DL>
</DD>
</DL>
<HR>
<A NAME="process(com.lowagie.text.pdf.RandomAccessFileOrArray)"><!-- --></A><H3>
process</H3>
<PRE>
public void <B>process</B>(<A HREF="../../../../com/lowagie/text/pdf/RandomAccessFileOrArray.html">RandomAccessFileOrArray</A> rf) throws <A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Reads the font metrics
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rf</CODE> - the AFM file<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - the AFM file is invalid<DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - the AFM file could not be read</DL>
</DD>
</DL>
<HR>
<A NAME="getFontStream()"><!-- --></A><H3>
getFontStream</H3>
<PRE>
private <A HREF="../../../../com/lowagie/text/pdf/PdfStream.html">PdfStream</A> <B>getFontStream</B>() throws <A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A></PRE>
<DL>
<DD>If the embedded flag is <CODE>false</CODE> or if the font is one of the 14 built in types, it returns <CODE>null</CODE>, otherwise the font is read and output in a PdfStream object.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the PdfStream containing the font or <CODE>null</CODE><DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - if there is an error reading the font</DL>
</DD>
</DL>
<HR>
<A NAME="getFontDescriptor(com.lowagie.text.pdf.PdfIndirectReference)"><!-- --></A><H3>
getFontDescriptor</H3>
<PRE>
private <A HREF="../../../../com/lowagie/text/pdf/PdfDictionary.html">PdfDictionary</A> <B>getFontDescriptor</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html">PdfIndirectReference</A> fontStream)</PRE>
<DL>
<DD>Generates the font descriptor for this font or <CODE>null</CODE> if it is one of the 14 built in fonts.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fontStream</CODE> - the indirect reference to a PdfStream containing the font or <CODE>null</CODE><DT><B>Returns:</B><DD>the PdfDictionary containing the font descriptor or <CODE>null</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="getFontBaseType(com.lowagie.text.pdf.PdfIndirectReference, int, int, byte[])"><!-- --></A><H3>
getFontBaseType</H3>
<PRE>
private <A HREF="../../../../com/lowagie/text/pdf/PdfDictionary.html">PdfDictionary</A> <B>getFontBaseType</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html">PdfIndirectReference</A> fontDescriptor, int firstChar, int lastChar, byte[] shortTag)</PRE>
<DL>
<DD>Generates the font dictionary for this font.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>firstChar</CODE> - the first valid character<DD><CODE>lastChar</CODE> - the last valid character<DD><CODE>shortTag</CODE> - a 256 bytes long <CODE>byte</CODE> array where each unused byte is represented by 0<DD><CODE>fontDescriptor</CODE> - the indirect reference to a PdfDictionary containing the font descriptor or <CODE>null</CODE><DT><B>Returns:</B><DD>the PdfDictionary containing the font dictionary</DL>
</DD>
</DL>
<HR>
<A NAME="writeFont(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.pdf.PdfIndirectReference, java.lang.Object[])"><!-- --></A><H3>
writeFont</H3>
<PRE>
void <B>writeFont</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfWriter.html">PdfWriter</A> writer, <A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html">PdfIndirectReference</A> ref, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html">Object</A>[] params) throws <A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A>, <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Outputs to the writer the font dictionaries and streams.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#writeFont(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.pdf.PdfIndirectReference, java.lang.Object[])">writeFont</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>writer</CODE> - the writer for this document<DD><CODE>ref</CODE> - the font indirect reference<DD><CODE>params</CODE> - several parameters that depend on the font type<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.3/docs/api/java/io/IOException.html">IOException</A></CODE> - on error<DD><CODE><A HREF="../../../../com/lowagie/text/DocumentException.html">DocumentException</A></CODE> - error in generating the object</DL>
</DD>
</DL>
<HR>
<A NAME="getFontDescriptor(int, float)"><!-- --></A><H3>
getFontDescriptor</H3>
<PRE>
public float <B>getFontDescriptor</B>(int key, float fontSize)</PRE>
<DL>
<DD>Gets the font parameter identified by <CODE>key</CODE>. Valid values for <CODE>key</CODE> are <CODE>ASCENT</CODE>, <CODE>CAPHEIGHT</CODE>, <CODE>DESCENT</CODE>, <CODE>ITALICANGLE</CODE>, <CODE>BBOXLLX</CODE>, <CODE>BBOXLLY</CODE>, <CODE>BBOXURX</CODE> and <CODE>BBOXURY</CODE>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFontDescriptor(int, float)">getFontDescriptor</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>key</CODE> - the parameter to be extracted<DD><CODE>fontSize</CODE> - the font size in points<DT><B>Returns:</B><DD>the parameter in points</DL>
</DD>
</DL>
<HR>
<A NAME="getPostscriptFontName()"><!-- --></A><H3>
getPostscriptFontName</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A> <B>getPostscriptFontName</B>()</PRE>
<DL>
<DD>Gets the postscript font name.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getPostscriptFontName()">getPostscriptFontName</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the postscript font name</DL>
</DD>
</DL>
<HR>
<A NAME="getFullFontName()"><!-- --></A><H3>
getFullFontName</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>[][] <B>getFullFontName</B>()</PRE>
<DL>
<DD>Gets the full name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.<br> For the other fonts the array has a single element with {"", "", "", font name}.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFullFontName()">getFullFontName</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the full name of the font</DL>
</DD>
</DL>
<HR>
<A NAME="getFamilyFontName()"><!-- --></A><H3>
getFamilyFontName</H3>
<PRE>
public <A HREF="http://java.sun.com/j2se/1.3/docs/api/java/lang/String.html">String</A>[][] <B>getFamilyFontName</B>()</PRE>
<DL>
<DD>Gets the family name of the font. If it is a True Type font each array element will have {Platform ID, Platform Encoding ID, Language ID, font name}. The interpretation of this values can be found in the Open Type specification, chapter 2, in the 'name' table.<br> For the other fonts the array has a single element with {"", "", "", font name}.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFamilyFontName()">getFamilyFontName</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the family name of the font</DL>
</DD>
</DL>
<HR>
<A NAME="hasKernPairs()"><!-- --></A><H3>
hasKernPairs</H3>
<PRE>
public boolean <B>hasKernPairs</B>()</PRE>
<DL>
<DD>Checks if the font has any kerning pairs.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#hasKernPairs()">hasKernPairs</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html">BaseFont</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><CODE>true</CODE> if the font has any kerning pairs</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/lowagie/text/pdf/TrueTypeFontUnicode.html"><B>PREV CLASS</B></A>
<A HREF="../../../../com/lowagie/text/pdf/VerticalText.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="Type1Font.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.lowagie.text.pdf.BaseFont">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -