To create a Font object to draw text, it is necessary to specify the font face name. This example demonstrates how to retrieve all the font face names from a font family name. Unfortunately, the method is somewhat inefficient since it involves creati…
控制台程序. 为了可以选择系统支持的字体,我们定义了一个FontDialog类: // Class to define a dialog to choose a font import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import static Constants.SketcherConstants.*; @SuppressWarnings("serial…
下面这段代码可以查看ios中可用的字体,具体那些字体长什么样,可以查看字体册工具. NSArray *familyArray = [UIFont familyNames]; for (id family in familyArray) { printf(“%s\n”,[family cStringUsingEncoding:NSUTF8StringEncoding]); NSArray *fontArray = [UIFont fontNamesForFamilyName:family]; fo…