⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cjkfont.html

📁 IText PDF开发工具说明文档,使用很方便。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
public int <B>getWidth</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>&nbsp;text)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getWidth(java.lang.String)">BaseFont</A></CODE></B></DD><DD>Gets the width of a <CODE>String</CODE> in normalized 1000 units.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#getWidth(java.lang.String)">getWidth</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>text</CODE> - the <CODE>String</CODE> to get the witdth of<DT><B>Returns:</B><DD>the width in normalized 1000 units</DL></DD></DL><HR><A NAME="getRawWidth(int, java.lang.String)"><!-- --></A><H3>getRawWidth</H3><PRE>int <B>getRawWidth</B>(int&nbsp;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>&nbsp;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="getKerning(int, int)"><!-- --></A><H3>getKerning</H3><PRE>public int <B>getKerning</B>(int&nbsp;char1,                      int&nbsp;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="getFontDescriptor()"><!-- --></A><H3>getFontDescriptor</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/PdfDictionary.html" title="class in com.lowagie.text.pdf">PdfDictionary</A> <B>getFontDescriptor</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getCIDFont(com.lowagie.text.pdf.PdfIndirectReference, com.lowagie.text.pdf.IntHashtable)"><!-- --></A><H3>getCIDFont</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/PdfDictionary.html" title="class in com.lowagie.text.pdf">PdfDictionary</A> <B>getCIDFont</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html" title="class in com.lowagie.text.pdf">PdfIndirectReference</A>&nbsp;fontDescriptor,                                 <A HREF="../../../../com/lowagie/text/pdf/IntHashtable.html" title="class in com.lowagie.text.pdf">IntHashtable</A>&nbsp;cjkTag)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getFontBaseType(com.lowagie.text.pdf.PdfIndirectReference)"><!-- --></A><H3>getFontBaseType</H3><PRE>private <A HREF="../../../../com/lowagie/text/pdf/PdfDictionary.html" title="class in com.lowagie.text.pdf">PdfDictionary</A> <B>getFontBaseType</B>(<A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html" title="class in com.lowagie.text.pdf">PdfIndirectReference</A>&nbsp;CIDFont)</PRE><DL><DD><DL></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" title="class in com.lowagie.text.pdf">PdfWriter</A>&nbsp;writer,               <A HREF="../../../../com/lowagie/text/pdf/PdfIndirectReference.html" title="class in com.lowagie.text.pdf">PdfIndirectReference</A>&nbsp;ref,               <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A>[]&nbsp;params)         throws <A HREF="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A>,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../com/lowagie/text/pdf/BaseFont.html#writeFont(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.pdf.PdfIndirectReference, java.lang.Object[])">BaseFont</A></CODE></B></DD><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" title="class in com.lowagie.text.pdf">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="../../../../com/lowagie/text/DocumentException.html" title="class in com.lowagie.text">DocumentException</A></CODE> - error in generating the object<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> - on error</DL></DD></DL><HR><A NAME="getDescNumber(java.lang.String)"><!-- --></A><H3>getDescNumber</H3><PRE>private float <B>getDescNumber</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>&nbsp;name)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getBBox(int)"><!-- --></A><H3>getBBox</H3><PRE>private float <B>getBBox</B>(int&nbsp;idx)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getFontDescriptor(int, float)"><!-- --></A><H3>getFontDescriptor</H3><PRE>public float <B>getFontDescriptor</B>(int&nbsp;key,                               float&nbsp;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> and <CODE>ITALICANGLE</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="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="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>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>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</DL></DD></DL><HR><A NAME="getFamilyFontName()"><!-- --></A><H3>getFamilyFontName</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>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 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -