summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Tweak RISC OS host detection for new tooling.John-Mark Bell2022-06-021-1/+1
| | | | | | | | The new toolchain has a different machine triplet, so update the things that care about it to work either way. Additionally, ensure that elf2aif is passed the right flags when building for EABI (if not, it will fail hard).
* Fix Encoding file entries for astral characters.John-Mark Bell2021-08-051-5/+27
| | | | | | | | | | | | | | | | | | | | | | | Early versions of the UCS Font Manager (3.41-3.42) supported the use of /uni followed by up to 8 upper-case hex digits to specify the Unicode codepoint represented by a glyph. Font Manager 3.43 changed this behaviour to align with Adobe's then-current specification of /uniXXXX for characters in the Basic Multilingual Plane and /uniXXXXYYYY for all other characters (where XXXX is a high UTF-16 surrogate and YYYY is a low surrogate) Font Manager 3.53 changed again to remove support for /uniXXXXYYYY and, instead, introduced support for /uXXXX to /uXXXXXXXX, where leading zeroes are forbidden if more than 4 hex digits are present. Change our behaviour to use the /uniXXXX form for characters in the Basic Multilingual Plane (which is supported by all versions of the UCS Font Manager) and use the /uXXXXX - /uXXXXXXXX form for all other characters. This effectively means that Font Manager 3.53 or later is required when astral characters are in use.
* Avoid overflow when fetching glyph names.John-Mark Bell2021-08-042-6/+9
| | | | | | The glyph list only contains names for codepoints in the basic multilingual plane (i.e. the first 2^16 codepoints). Ensure that we don't erroneously match glyph names for codepoints in astral planes.
* Whinge loudly if we can't load the glyph listJohn-Mark Bell2021-08-041-1/+3
|
* Dynamically allocate full path bufferJohn-Mark Bell2021-08-041-4/+13
|
* Fix RISC OS buildJohn-Mark Bell2021-08-021-1/+1
| | | | | 5bb88a81 got BUILD and HOST confused, so we were not linking the RISC OS binary statically.
* Fix up for new buildsystemJohn-Mark Bell2014-11-161-1/+1
|
* Rework the makefiles in the tools/ tree for the new NSBUILD stuffDaniel Silverstone2012-06-291-1/+1
| | | | svn path=/trunk/tools/ttf2f/; revision=13998
* Fix progress computationJohn Mark Bell2011-05-081-1/+2
| | | | svn path=/trunk/tools/ttf2f/; revision=12316
* Fix cleanup to cope with things not being initialisedJohn Mark Bell2011-05-081-6/+10
| | | | svn path=/trunk/tools/ttf2f/; revision=12315
* Make struct char_data packedJohn Mark Bell2011-03-052-1/+2
| | | | svn path=/trunk/tools/ttf2f/; revision=11915
* Convert font into temporary directory, then copy it into the destination ↵John Mark Bell2009-05-131-10/+106
| | | | | | | | font resource. Ensure that any MessagesNN file within the destination font resource is synchronised with the converted font. svn path=/trunk/tools/ttf2f/; revision=7508
* Sanitise Font$Path entries before constructing destination menu.John Mark Bell2009-05-131-5/+37
| | | | svn path=/trunk/tools/ttf2f/; revision=7505
* Don't process filenames.John Mark Bell2009-05-131-0/+8
| | | | svn path=/trunk/tools/ttf2f/; revision=7502
* Remove encoding version line -- it's pointlessJohn Mark Bell2009-05-131-1/+0
| | | | svn path=/trunk/tools/ttf2f/; revision=7501
* Create all directories as appropriate.John Mark Bell2009-05-131-5/+30
| | | | | | Now takes an extra parameter specifying the destination directory. svn path=/trunk/tools/ttf2f/; revision=7500
* Ensure path is NUL-terminated when creating directoriesJohn Mark Bell2009-05-131-3/+3
| | | | svn path=/trunk/tools/ttf2f/; revision=7499
* Revert to DIR_SEP magic.John Mark Bell2009-05-135-10/+37
| | | | | | | Fix toolbox frontend to initialise conversion context correctly. Append ,ff6 when not on RISC OS. svn path=/trunk/tools/ttf2f/; revision=7498
* Ensure final directory is created and destination path is NUL terminated.John Mark Bell2009-05-131-0/+10
| | | | svn path=/trunk/tools/ttf2f/; revision=7494
* Fix quit menu entry properly -- it helps to use the correct constant.John Mark Bell2009-05-131-2/+2
| | | | svn path=/trunk/tools/ttf2f/; revision=7493
* Port toolbox frontend to OSLib/OSLibSupport.John Mark Bell2009-05-132-183/+262
| | | | svn path=/trunk/tools/ttf2f/; revision=7491
* Remove static globals and use a stack-allocated decomposition context instead.John Mark Bell2009-05-121-76/+82
| | | | svn path=/trunk/tools/ttf2f/; revision=7489
* Divorce the FT glyph id from the glyph table index.John Mark Bell2009-05-122-14/+27
| | | | | | | This permits a single glyph to be mapped to multiple codepoints. In future, we should be more clever and not duplicate the glyph data. svn path=/trunk/tools/ttf2f/; revision=7486
* Correctly calculate the offset of the end of fileJohn Mark Bell2009-05-121-0/+6
| | | | svn path=/trunk/tools/ttf2f/; revision=7481
* Hack for space character with no path.John Mark Bell2009-05-121-2/+22
| | | | svn path=/trunk/tools/ttf2f/; revision=7480
* Fix chunk offset tableJohn Mark Bell2009-05-121-17/+11
| | | | svn path=/trunk/tools/ttf2f/; revision=7477
* Use Unix paths everywhere. Unixlib will fix this for usJohn Mark Bell2009-05-114-9/+3
| | | | svn path=/trunk/tools/ttf2f/; revision=7470
* Squash memory leaksJohn Mark Bell2009-05-113-14/+16
| | | | svn path=/trunk/tools/ttf2f/; revision=7468
* Fix writing of font name to intmetrics fileJohn Mark Bell2009-05-111-4/+4
| | | | svn path=/trunk/tools/ttf2f/; revision=7467
* Make outlines output write latin1 glyphs firstJohn Mark Bell2009-05-112-148/+192
| | | | svn path=/trunk/tools/ttf2f/; revision=7466
* Define min()John Mark Bell2009-05-111-0/+4
| | | | svn path=/trunk/tools/ttf2f/; revision=7465
* Make strndup implementation more robustJohn Mark Bell2009-05-111-8/+5
| | | | svn path=/trunk/tools/ttf2f/; revision=7464
* Fix buffer overflowsJohn Mark Bell2009-05-114-6/+11
| | | | svn path=/trunk/tools/ttf2f/; revision=7463
* Make encoding file output emit latin1 table firstJohn Mark Bell2009-05-111-24/+48
| | | | svn path=/trunk/tools/ttf2f/; revision=7462
* Use enum, rather than magic valueJohn Mark Bell2009-05-111-1/+2
| | | | svn path=/trunk/tools/ttf2f/; revision=7461
* Write out font metrics so that the first 256 glyphs match Acorn Latin 1.John Mark Bell2009-05-114-21/+35
| | | | | | Don't use this version -- it will produce inconsistent font data (outlines and encoding export needs the same thing doing to it) svn path=/trunk/tools/ttf2f/; revision=7460
* Populate latin1 table with glyphsJohn Mark Bell2009-05-102-5/+38
| | | | svn path=/trunk/tools/ttf2f/; revision=7459
* Pass entire context to freetype bindingJohn Mark Bell2009-05-104-32/+36
| | | | svn path=/trunk/tools/ttf2f/; revision=7458
* Make proper use of conversion contextJohn Mark Bell2009-05-1010-175/+162
| | | | svn path=/trunk/tools/ttf2f/; revision=7457
* Introduce a conversion context.John Mark Bell2009-05-102-22/+43
| | | | svn path=/trunk/tools/ttf2f/; revision=7456
* Tidy source codeJohn Mark Bell2009-05-101-73/+52
| | | | svn path=/trunk/tools/ttf2f/; revision=7455
* We're not producing base encoding files, so don't use .NotDefJohn Mark Bell2009-05-081-1/+1
| | | | svn path=/trunk/tools/ttf2f/; revision=7449
* More tidyingJohn Mark Bell2009-05-083-68/+86
| | | | svn path=/trunk/tools/ttf2f/; revision=7448
* More tidying.John Mark Bell2009-05-084-37/+33
| | | | svn path=/trunk/tools/ttf2f/; revision=7447
* More tidyingJohn Mark Bell2009-05-084-26/+27
| | | | svn path=/trunk/tools/ttf2f/; revision=7446
* API tidyingJohn Mark Bell2009-05-083-14/+20
| | | | svn path=/trunk/tools/ttf2f/; revision=7445
* Add some error handling and reportingRob Kendrick2009-05-088-75/+162
| | | | svn path=/trunk/tools/ttf2f/; revision=7441
* Build-time selectable frontend -- defaults to CLI.John Mark Bell2009-05-082-1/+7
| | | | svn path=/trunk/tools/ttf2f/; revision=7438
* Slightly more useful behaviour on non-RO platforms.John Mark Bell2009-05-086-7/+21
| | | | | | | Fix segv in cli frontend. Make cli frontend create output directory. svn path=/trunk/tools/ttf2f/; revision=7437
* Command line interfaceJohn Mark Bell2009-05-072-1/+101
| | | | svn path=/trunk/tools/ttf2f/; revision=7430