From 12210595ded1da77e969e50c80a796d849532139 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Jan 2015 10:43:34 +1100 Subject: On Windows GDI, assume font names are encoded in UTF-8 and use wide character calls to allow use of Asian font names. --- doc/ScintillaDoc.html | 12 ++++++++---- doc/ScintillaHistory.html | 3 +++ 2 files changed, 11 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 1afc6d77e..ed66afa69 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -82,7 +82,7 @@

Scintilla Documentation

-

Last edited 24 November 2014 NH

+

Last edited 10 January 2015 NH

There is an overview of the internal design of Scintilla.
@@ -2577,11 +2577,15 @@ struct Sci_TextToFind { SCI_STYLEGETITALIC(int styleNumber)
These messages (plus SCI_STYLESETCHARACTERSET) set the font - attributes that are used to match the fonts you request to those available. The + attributes that are used to match the fonts you request to those available.

+

The fontName is a zero terminated string holding the name of a font. Under Windows, - only the first 32 characters of the name are used and the name is not case sensitive. For + only the first 32 characters of the name are used, the name is decoded as UTF-8, and the name is not case sensitive. For internal caching, Scintilla tracks fonts by name and does care about the casing of font names, - so please be consistent. On GTK+, Pango is used to display text.

+ so please be consistent. + On GTK+, Pango is used to display text and the name is sent directly to Pango without transformation. + On Qt, the name is decoded as UTF-8. + On Cocoa, the name is decoded as MacRoman.

Sizes can be set to a whole number of points with SCI_STYLESETSIZE or to a fractional point size in hundredths of a point with SCI_STYLESETSIZEFRACTIONAL by multiplying the size by 100 (SC_FONT_SIZE_MULTIPLIER). diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index c4d420452..b51dc04bd 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -510,6 +510,9 @@ When a text margin is displayed, for annotation lines, use the background colour of the base line.

  • + On Windows GDI, assume font names are encoded in UTF-8. This matches the Direct2D code path. +
  • +
  • Fix paste for GTK+ on OS X. Bug #1677.
  • -- cgit v1.2.3