Use Bitstream Vera Sans and Latin text in ft-text-vertical.

We don't really rely on the Japanese text and font, as FreeType
synthesizes vertical metrics for all fonts.
This commit is contained in:
Behdad Esfahbod 2006-07-11 16:07:13 -04:00
parent fe647ca42b
commit c45a932175
5 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 834 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,021 B

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 808 B

View file

@ -59,7 +59,7 @@ create_scaled_font (cairo_t * cr)
pattern = FcPatternCreate ();
FcPatternAddString (pattern, FC_FAMILY, (FcChar8 *)"AR PL KaitiM GB");
FcPatternAddString (pattern, FC_FAMILY, (FcChar8 *)"Bitstream Vera Sans");
FcPatternAddDouble (pattern, FC_PIXEL_SIZE, TEXT_SIZE);
FcConfigSubstitute (NULL, pattern, FcMatchPattern);
@ -99,7 +99,7 @@ draw (cairo_t *cr, int width, int height)
{
cairo_text_extents_t extents;
cairo_scaled_font_t * scaled_font;
static char black[] = "黑色", blue[] = "蓝色";
static char black[] = "AB", blue[] = "cd";
/* We draw in the default black, so paint white first. */
cairo_save (cr);