• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tcl-105/tk84/tk/macosx/

Lines Matching +defs:font +defs:size

5  *	font package interface.
37 * The preferred font encodings.
46 * font to the name that should be passed to Tcl_GetTextEncoding() to obtain
47 * the encoding for that font. The set of numeric constants is fixed and
104 * The following structure represents a font family. It is assumed that
105 * all screen fonts constructed from the same "font family" share certain
106 * properties; all screen fonts with the same "font family" point to a
108 * is the character existence metrics, used to determine if a screen font
111 * Under Macintosh, a "font family" is uniquely identified by its face number.
121 struct FontFamily *nextPtr; /* Next in list of all known font families. */
135 Tcl_Encoding encoding; /* Encoding for this font family. */
142 * otherwise 0. If this is a single-byte font,
151 * representing whether this font can be used
159 * The following structure encapsulates an individual screen font. A font
165 char **fontMap; /* Pointer to font map from the FontFamily,
171 * The following structure represents Macintosh's implementation of a font
178 TkFont font; /* Stuff used by generic font package. Must
186 * encountered by this font so far. All fonts
188 * AllocFont() from the original set of font
193 short size; /* Font size in pixels, constructed from
194 * font attributes. */
195 short style; /* Style bits, constructed from font
200 * The following structure is used to map between the UTF-8 name for a font and
201 * the name that the Macintosh uses to refer to the font, in order to determine
202 * if a font exists. The Macintosh names for fonts are stored in the encoding
203 * of the font itself.
207 Tk_Uid utfName; /* The name of the font in UTF-8. */
208 StringPtr nativeName; /* The name of the font in the font's encoding. */
209 FMFontFamily faceNum; /* Unique face number for this font. */
213 * The list of font families that are currently loaded. As screen fonts
215 * exist in each font family.
247 static void InitFont(Tk_Window tkwin, int family, unsigned char *familyName, int size, int style, MacFont *fontPtr);
311 * The name of each font is stored in the encoding of that font.
313 * of the font unless we knew the encoding of that font? We can't.
315 * system. The when the user asks for font by its UTF-8 name, we
316 * lookup the name in that table and really ask for the font by its
318 * font.
429 * Map a platform-specific native font name to a TkFont.
433 * native font. If a native font by the given name could not be
438 * TkpDeleteFont() when the font is no longer needed.
452 Tk_Window tkwin, /* For display where font will be used. */
453 CONST char *name) /* Platform-specific font name. */
488 * Given a desired set of attributes for a font, find a font with the
492 * The return value is a pointer to a TkFont that represents the font
493 * with the desired attributes. If a font with the desired attributes
494 * could not be constructed, some other font will be substituted
500 * data when the font is no longer needed.
517 * font; the existing contents of the font
520 Tk_Window tkwin, /* For display where font will be used. */
531 * Algorithm to get the closest font to the one requested.
578 InitFont(tkwin, faceNum, NULL, faPtr->size, style, fontPtr);
589 * Called to release a font allocated by TkpGetNativeFont() or
605 TkFont *tkFontPtr) /* Token of font to be deleted. */
616 * Return information about the font families that are available on
621 * font families.
651 * screen fonts that make up a font object.
655 * of the screen fonts that make up the given font object.
740 * measuring/displaying text within a font run. We cannot safely
752 TextSize(fontPtr->size);
769 * represented by a single screen font.
770 * 2. Convert those chars to the encoding of that font.
864 * font values and graphics port must be set.
883 FontFamily *familyPtr, /* FontFamily that describes the font values
897 int *widthLeftPtr) /* On input, specifies size of range into
1022 * be the same as font used in GC. */
1125 TextSize(fontPtr->size);
1171 * a glyph defined in the font or not. Note that this is potentially
1172 * not compatible with Mac OS 8 as it looks at the font handle
1173 * structure directly. Looks into the character array of the font
1187 Tk_Font tkfont, /* The font we are looking in. */
1191 * For some reason, FMSwapFont always returns a NULL font handle under OS X
1223 Tk_Window tkwin, /* For display where font will be used. */
1224 int faceNum, /* Macintosh font number. */
1225 unsigned char *familyName, /* The font family name or NULL. */
1226 int size, /* Point size for Macintosh font. */
1239 if (size == 0) {
1240 size = -GetDefFontSize();
1242 pixels = (short) TkFontGetPixels(tkwin, size);
1254 fontPtr->font.fid = (Font) fontPtr;
1256 faPtr = &fontPtr->font.fa;
1258 faPtr->size = TkFontGetPoints(tkwin, size);
1264 fmPtr = &fontPtr->font.fm;
1270 fontPtr->size = pixels;
1290 * font itself.
1303 MacFont *fontPtr) /* The font to delete. */
1321 * Wrap a screen font and load the FontFamily that represents
1323 * from UTF-8 to the charset of the font.
1326 * The subFontPtr is filled with information about the font.
1338 int faceNum, /* The font number. */
1377 * Find the FontFamily structure associated with the given font
1389 * A new FontFamily structure will be allocated if this font family
1399 int faceNum) /* The font number. */
1503 * Determine which physical screen font is necessary to use to
1504 * display the given character. If the font object does not have
1505 * a screen font that can display the character, another screen font
1506 * may be loaded into the font object, following a set of preferred
1525 MacFont *fontPtr, /* The font object with which the character
1557 aliases = TkFontGetAliasList(fontPtr->font.fa.family);
1564 if (strcasecmp(fallbackName, fontPtr->font.fa.family) == 0) {
1566 * If the base font has a fallback...
1572 * Or if an alias for the base font has a fallback...
1635 * No font can display this character. We will use the base font
1651 * See if the screen font can display the given character.
1654 * The return value is 0 if the screen font cannot display the
1658 * New pages are added to the font mapping cache whenever the
1669 SubFont *subFontPtr, /* Contains font mapping cache to be queried
1689 * Tell the font mapping cache that the given screen font should be
1691 * font on the system can be be found that can display that
1692 * character; we lie to the font and tell it that it can display
1700 * New pages are added to the font mapping cache whenever the
1711 SubFont *subFontPtr, /* Contains font mapping cache to be
1746 SubFont *subFontPtr, /* Contains font mapping cache to be
1766 fm.size = 12;
1776 * For some reason, FMSwapFont alywas returns a structure where the returned font handle
1785 * Found an outline font which has very complex font record.
1811 * can be used to construct a screen font that can display the
1829 MacFont *fontPtr, /* The font object that will own the new
1830 * screen font. */
1831 const char *faceName, /* Desired face name for new screen font. */
1833 * screen font must be able to display. */
1837 * trying to find a suitable screen font. */
1873 * face name when looking for a screen font that can support some
1912 * If the specified physical screen font has not already been loaded
1913 * into the font object, determine if the specified physical screen
1914 * font can display the given character.
1918 * by the font object. This SubFont can be used to display the given
1919 * character. The SubFont represents the screen font with the base set
1920 * of font attributes from the font object, but using the specified
1921 * font name. NULL is returned if the font object already holds
1922 * a reference to the specified physical font or if the specified
1923 * physical font cannot display the given character.
1926 * The font object's subFontArray is updated to contain a reference
1937 MacFont *fontPtr, /* The font object that will own the new
1938 * screen font. */
1939 const char *faceName, /* Desired face name for new screen font. */
1941 * screen font must be able to display. */
1964 * Load this font and see if it has the desired character.
2004 * Determines if any physical screen font exists on the system with
2006 * possible to construct some physical screen font with that family
2010 * The return value is 0 if the specified font family does not exist,
2012 * number that identifies the screen font, or 0 if the font family
2023 const char *faceName, /* UTF-8 name of font family to query. */
2024 short *faceNumPtr) /* Filled with font number for above family. */
2042 const char *faceName, /* UTF-8 name of font family to query. */
2043 short *faceNumPtr) /* Filled with font number for above family. */
2068 * Given the native name for a Macintosh font (in which the name of
2069 * the font is in the encoding of the font itself), return the UTF-8
2070 * name that corresponds to that font. The specified font name must
2071 * refer to a font that actually exists on the machine.
2074 * properties of a Macintosh font object.
2077 * The return value is a pointer to the UTF-8 of the specified font.
2087 StringPtr nativeName) /* Pascal name for font in native encoding. */
2108 * specified font.
2111 * font into UTF-8 is macRoman, while the desired encoding to use
2112 * to convert bytes in a symbolic font to UTF-8 is the corresponding
2115 * should the specified font be symbolic.
2118 * The return value is a string that specifies the font's encoding.
2119 * If the font's encoding could not be identified, NULL is returned.
2129 int faceNum, /* Macintosh font number. */
2135 int *isSymbolPtr) /* Filled with non-zero if this font is a
2136 * symbol font, 0 otherwise. */
2196 fsPtr->font = lastFamilyPtr->faceNum;
2197 fsPtr->size = fontPtr->size;