mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug #5937 - Fix nonascii chars in graphs:
* text is converted to unicode - no html entities anymore * then all nonascii chars are converted to decimal number entites * default.ttf is searched in dataroot/lang and local language packs too * removed lang_decode() - obsoleded by proper entity converison above * updated documentation in lang/en_utf8/fonts/README.txt merged from MOODLE_16_STABLE
- Loading branch information
skodak
committed
Jun 29, 2006
1 parent
3b34491
commit 9c1cd39
Showing
4 changed files
with
55 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
Fonts | ||
----- | ||
|
||
This directory contains fonts that are used when creating | ||
images with text. | ||
GD font operations need unicode capable font to do the server-side | ||
rendering of text. Default font lib/default.ttf (FreeSans Medium | ||
revision 1.76 from http://savannah.nongnu.org/projects/freefont/) | ||
is suitable for most languages. | ||
|
||
The only one used currently is default.ttf | ||
Unsupported languages may add special font | ||
lang/xx_utf8/fonts/default.ttf, it will be used for that language | ||
only. | ||
|
||
If a language doesn't have the font here then the one in | ||
/lang/en/fonts/default.ttf is used instead. | ||
|
||
Multibyte strings will need decoding, because the Truetype | ||
routines expect ISO fonts or Unicode strings. If there is a | ||
file here called lang_decode.php, containing a function | ||
called lang_decode(), then it will be used on each string. | ||
If you want to override the default font dirroot/lib/default.ttf, | ||
save another one as dataroot/lang/default.ttf - it will | ||
be used for all site languages without it's font file. | ||
|
||
The list of suitable TrueType fonts can be found at: | ||
* http://en.wikipedia.org/wiki/Unicode_fonts | ||
* http://www.alanwood.net/unicode/fonts.html#general |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters