📄 type3font.html
字号:
<PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[][] <B>getFamilyFontName</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFamilyFontName()">BaseFont</A></CODE></B></DD><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" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the family name of the font</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><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFontDescriptor(int, float)">BaseFont</A></CODE></B></DD><DD>Gets the font parameter identified by <CODE>key</CODE>. Valid values for <CODE>key</CODE> are <CODE>ASCENT</CODE>, <CODE>AWT_ASCENT</CODE>, <CODE>CAPHEIGHT</CODE>, <CODE>DESCENT</CODE>, <CODE>AWT_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" title="class in com.lowagie.text.pdf">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="getFullFontName()"><!-- --></A><H3>getFullFontName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[][] <B>getFullFontName</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getFullFontName()">BaseFont</A></CODE></B></DD><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" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the full name of the font</DL></DD></DL><HR><A NAME="getAllNameEntries()"><!-- --></A><H3>getAllNameEntries</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>[][] <B>getAllNameEntries</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getAllNameEntries()">BaseFont</A></CODE></B></DD><DD>Gets all the entries of the names-table. If it is a True Type font each array element will have {Name ID, 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 {"4", "", "", "", font name}.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getAllNameEntries()">getAllNameEntries</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the full name of the font<DT><B>Since:</B></DT> <DD>2.0.8</DD></DL></DD></DL><HR><A NAME="getKerning(int, int)"><!-- --></A><H3>getKerning</H3><PRE>public int <B>getKerning</B>(int char1, int char2)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getKerning(int, int)">BaseFont</A></CODE></B></DD><DD>Gets the kerning between two Unicode chars.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getKerning(int, int)">getKerning</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">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 in normalized 1000 units</DL></DD></DL><HR><A NAME="getPostscriptFontName()"><!-- --></A><H3>getPostscriptFontName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>getPostscriptFontName</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getPostscriptFontName()">BaseFont</A></CODE></B></DD><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" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the postscript font name</DL></DD></DL><HR><A NAME="getRawCharBBox(int, java.lang.String)"><!-- --></A><H3>getRawCharBBox</H3><PRE>protected int[] <B>getRawCharBBox</B>(int c, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getRawCharBBox(int, java.lang.String)">getRawCharBBox</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getRawWidth(int, java.lang.String)"><!-- --></A><H3>getRawWidth</H3><PRE>int <B>getRawWidth</B>(int c, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getRawWidth(int, java.lang.String)">BaseFont</A></CODE></B></DD><DD>Gets the width from the font according to the Unicode char <CODE>c</CODE> or the <CODE>name</CODE>. If the <CODE>name</CODE> is null it's a symbolic font.<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" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the unicode char<DD><CODE>name</CODE> - the glyph name<DT><B>Returns:</B><DD>the width of the char</DL></DD></DL><HR><A NAME="hasKernPairs()"><!-- --></A><H3>hasKernPairs</H3><PRE>public boolean <B>hasKernPairs</B>()</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#hasKernPairs()">BaseFont</A></CODE></B></DD><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" title="class in com.lowagie.text.pdf">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><HR><A NAME="setKerning(int, int, int)"><!-- --></A><H3>setKerning</H3><PRE>public boolean <B>setKerning</B>(int char1, int char2, int kern)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#setKerning(int, int, int)">BaseFont</A></CODE></B></DD><DD>Sets the kerning between two Unicode chars.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#setKerning(int, int, int)">setKerning</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">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<DD><CODE>kern</CODE> - the kerning to apply in normalized 1000 units<DT><B>Returns:</B><DD><code>true</code> if the kerning was applied, <code>false</code> otherwise</DL></DD></DL><HR><A NAME="setPostscriptFontName(java.lang.String)"><!-- --></A><H3>setPostscriptFontName</H3><PRE>public void <B>setPostscriptFontName</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#setPostscriptFontName(java.lang.String)">BaseFont</A></CODE></B></DD><DD>Sets the font name that will appear in the pdf font dictionary. Use with care as it can easily make a font unreadable if not embedded.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#setPostscriptFontName(java.lang.String)">setPostscriptFontName</A></CODE> in class <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html" title="class in com.lowagie.text.pdf">BaseFont</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the new font name</DL></DD></DL><HR><A NAME="writeFont(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.pdf.PdfIndirectReference, java.lang.Object[])"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -