Class Font
public class Font : Serializable, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ISerializable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Serializable>Font
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Derived
- Inherited Members
-
JVMBridgeBase<Serializable>.IsAssignableFrom(IJavaType)JVMBridgeBase<Serializable>.IsAssignableFrom<T>()JVMBridgeBase<Serializable>.Execute<T>(params T[])JVMBridgeBase<Serializable>.DynBridgeClazzJVMBridgeBase<Serializable>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.Dispose()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
Font()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public Font()
Font(String, int, int)
public Font(String arg0, int arg1, int arg2)
Parameters
Font(Map)
public Font(Map arg0)
Parameters
Font(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public Font(params object[] args)
Parameters
args
object[]
Properties
Attributes
public Map<TextAttribute, object> Attributes { get; }
Property Value
AvailableAttributes
public AttributedCharacterIterator.Attribute[] AvailableAttributes { get; }
Property Value
BOLD
public static int BOLD { get; }
Property Value
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CENTER_BASELINE
public static int CENTER_BASELINE { get; }
Property Value
DIALOG
public static String DIALOG { get; }
Property Value
DIALOG_INPUT
public static String DIALOG_INPUT { get; }
Property Value
Family
public String Family { get; }
Property Value
FontName
public String FontName { get; }
Property Value
HANGING_BASELINE
public static int HANGING_BASELINE { get; }
Property Value
ITALIC
public static int ITALIC { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
ItalicAngle
public float ItalicAngle { get; }
Property Value
LAYOUT_LEFT_TO_RIGHT
public static int LAYOUT_LEFT_TO_RIGHT { get; }
Property Value
LAYOUT_NO_LIMIT_CONTEXT
public static int LAYOUT_NO_LIMIT_CONTEXT { get; }
Property Value
LAYOUT_NO_START_CONTEXT
public static int LAYOUT_NO_START_CONTEXT { get; }
Property Value
LAYOUT_RIGHT_TO_LEFT
public static int LAYOUT_RIGHT_TO_LEFT { get; }
Property Value
MONOSPACED
public static String MONOSPACED { get; }
Property Value
MissingGlyphCode
public int MissingGlyphCode { get; }
Property Value
Name
public String Name { get; }
Property Value
NumGlyphs
public int NumGlyphs { get; }
Property Value
PLAIN
public static int PLAIN { get; }
Property Value
PSName
public String PSName { get; }
Property Value
ROMAN_BASELINE
public static int ROMAN_BASELINE { get; }
Property Value
SANS_SERIF
public static String SANS_SERIF { get; }
Property Value
SERIF
public static String SERIF { get; }
Property Value
Size
public int Size { get; }
Property Value
Size2D
public float Size2D { get; }
Property Value
Style
public int Style { get; }
Property Value
TRUETYPE_FONT
public static int TRUETYPE_FONT { get; }
Property Value
TYPE1_FONT
public static int TYPE1_FONT { get; }
Property Value
Transform
public AffineTransform Transform { get; }
Property Value
Methods
CanDisplay(char)
public bool CanDisplay(char arg0)
Parameters
Returns
CanDisplay(int)
public bool CanDisplay(int arg0)
Parameters
Returns
CanDisplayUpTo(String)
public int CanDisplayUpTo(String arg0)
Parameters
Returns
CanDisplayUpTo(CharacterIterator, int, int)
public int CanDisplayUpTo(CharacterIterator arg0, int arg1, int arg2)
Parameters
arg0
CharacterIteratorarg1
intarg2
int
Returns
CanDisplayUpTo(char[], int, int)
public int CanDisplayUpTo(char[] arg0, int arg1, int arg2)
Parameters
Returns
CreateFont(int, File)
public static Font CreateFont(int arg0, File arg1)
Parameters
Returns
Exceptions
CreateFont(int, InputStream)
public static Font CreateFont(int arg0, InputStream arg1)
Parameters
arg0
intarg1
InputStream
Returns
Exceptions
CreateFonts(File)
public static Font[] CreateFonts(File arg0)
Parameters
Returns
Exceptions
CreateFonts(InputStream)
public static Font[] CreateFonts(InputStream arg0)
Parameters
arg0
InputStream
Returns
Exceptions
CreateGlyphVector(FontRenderContext, String)
public GlyphVector CreateGlyphVector(FontRenderContext arg0, String arg1)
Parameters
arg0
FontRenderContextarg1
String
Returns
CreateGlyphVector(FontRenderContext, CharacterIterator)
public GlyphVector CreateGlyphVector(FontRenderContext arg0, CharacterIterator arg1)
Parameters
Returns
CreateGlyphVector(FontRenderContext, char[])
public GlyphVector CreateGlyphVector(FontRenderContext arg0, char[] arg1)
Parameters
arg0
FontRenderContextarg1
char[]
Returns
CreateGlyphVector(FontRenderContext, int[])
public GlyphVector CreateGlyphVector(FontRenderContext arg0, int[] arg1)
Parameters
arg0
FontRenderContextarg1
int[]
Returns
Decode(String)
public static Font Decode(String arg0)
Parameters
Returns
DeriveFont(AffineTransform)
public Font DeriveFont(AffineTransform arg0)
Parameters
Returns
DeriveFont(int)
public Font DeriveFont(int arg0)
Parameters
Returns
DeriveFont(int, AffineTransform)
public Font DeriveFont(int arg0, AffineTransform arg1)
Parameters
arg0
intarg1
AffineTransform
Returns
DeriveFont(int, float)
public Font DeriveFont(int arg0, float arg1)
Parameters
Returns
DeriveFont(float)
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Font.html#deriveFont(float)
public Font DeriveFont(float arg0)
Parameters
Returns
DeriveFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>)
public Font DeriveFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object> arg0) where Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute : AttributedCharacterIterator.Attribute
Parameters
Returns
Type Parameters
Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute
GetBaselineFor(char)
public byte GetBaselineFor(char arg0)
Parameters
Returns
GetFamily(Locale)
public String GetFamily(Locale arg0)
Parameters
Returns
GetFont(String)
public static Font GetFont(String arg0)
Parameters
Returns
GetFont(String, Font)
public static Font GetFont(String arg0, Font arg1)
Parameters
Returns
GetFontName(Locale)
public String GetFontName(Locale arg0)
Parameters
Returns
GetFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object>)
public static Font GetFont<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute>(Map<Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute, object> arg0) where Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute : AttributedCharacterIterator.Attribute
Parameters
Returns
Type Parameters
Arg0ExtendsJava_Text_AttributedCharacterIterator_Attribute
GetLineMetrics(String, FontRenderContext)
public LineMetrics GetLineMetrics(String arg0, FontRenderContext arg1)
Parameters
arg0
Stringarg1
FontRenderContext
Returns
GetLineMetrics(String, int, int, FontRenderContext)
public LineMetrics GetLineMetrics(String arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
Stringarg1
intarg2
intarg3
FontRenderContext
Returns
GetLineMetrics(CharacterIterator, int, int, FontRenderContext)
public LineMetrics GetLineMetrics(CharacterIterator arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
CharacterIteratorarg1
intarg2
intarg3
FontRenderContext
Returns
GetLineMetrics(char[], int, int, FontRenderContext)
public LineMetrics GetLineMetrics(char[] arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
char[]arg1
intarg2
intarg3
FontRenderContext
Returns
GetMaxCharBounds(FontRenderContext)
public Rectangle2D GetMaxCharBounds(FontRenderContext arg0)
Parameters
Returns
GetStringBounds(String, FontRenderContext)
public Rectangle2D GetStringBounds(String arg0, FontRenderContext arg1)
Parameters
arg0
Stringarg1
FontRenderContext
Returns
GetStringBounds(String, int, int, FontRenderContext)
public Rectangle2D GetStringBounds(String arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
Stringarg1
intarg2
intarg3
FontRenderContext
Returns
GetStringBounds(CharacterIterator, int, int, FontRenderContext)
public Rectangle2D GetStringBounds(CharacterIterator arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
CharacterIteratorarg1
intarg2
intarg3
FontRenderContext
Returns
GetStringBounds(char[], int, int, FontRenderContext)
public Rectangle2D GetStringBounds(char[] arg0, int arg1, int arg2, FontRenderContext arg3)
Parameters
arg0
char[]arg1
intarg2
intarg3
FontRenderContext
Returns
HasLayoutAttributes()
public bool HasLayoutAttributes()
Returns
HasUniformLineMetrics()
public bool HasUniformLineMetrics()
Returns
IsBold()
public bool IsBold()
Returns
IsItalic()
public bool IsItalic()
Returns
IsPlain()
public bool IsPlain()
Returns
IsTransformed()
public bool IsTransformed()
Returns
LayoutGlyphVector(FontRenderContext, char[], int, int, int)
public GlyphVector LayoutGlyphVector(FontRenderContext arg0, char[] arg1, int arg2, int arg3, int arg4)
Parameters
arg0
FontRenderContextarg1
char[]arg2
intarg3
intarg4
int
Returns
TextRequiresLayout(char[], int, int)
public static bool TextRequiresLayout(char[] arg0, int arg1, int arg2)