summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixRFont.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed [545f10fcf3] - Poor Xft coloured font performance on X11. Thanks to ↵fvogel2016-05-101-44/+106
| | | | | James Bonfield for the bug report, to Rob Davies for the patch, and to Brian Griffin for the testing FossilOrigin-Name: d96ebaabc78b8bc2b6b5f903df2079f3395f5ac4
* Remove useless (void *) casts introduced in checkin [81e50c85ed]. The ↵stwo2012-08-091-1/+1
| | | | | warnings were false flags from a faulty OpenBSD C compiler. FossilOrigin-Name: 15218b051c550638fb61dda3e86feb034c140f6f
* Zap trailing whitespace.stwo2012-08-061-1/+1
| | | FossilOrigin-Name: fde20198f3786c22536175c1e0dd6db526cb1d4a
* Type correctness fix, to stop compiler complaintjan.nijtmans2012-07-121-2/+2
| | | FossilOrigin-Name: 587bcc7f274402db630ef0c291de5ecd57af9b3f
* Fix text clipping when working with the Xft-based renderer.dkf2012-06-121-0/+39
|\ | | | | FossilOrigin-Name: 66c1f59a8931ff176bcbbe14870fb6279fc86139
| * Fix text clipping when working with the Xft-based renderer.dkf2012-06-121-0/+28
| | | | | | FossilOrigin-Name: 2c72a41785ba1d51d99aca17a097720528d89260
* | Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ | |/ | | FossilOrigin-Name: b8a1385217cc117d6962c234f0a4d28ff10e089c
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| | | | | | FossilOrigin-Name: 3f95fbe0ce14948fd409844b915c18ef25d7d0a0
| * Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-2/+2
| | | | | | | | | | call" compiler warnings. FossilOrigin-Name: b7a58eae613a06ad7ad9e2cf2aa3a294804fc3b8
| * Revert my last commit on grounds it is more likely to cause problems than not.dkf2010-01-021-3/+1
| | | | | | FossilOrigin-Name: 867f39dbb007c3a02d06b718730be62b7c1e70a9
| * Added point-size conversion, from Ubuntu port.dkf2010-01-021-1/+3
| | | | | | FossilOrigin-Name: 2ff9330b5285e62cb0d1117f973a98568a722a21
| * [Bug 1961455]: Draw underlines and overstrikes when using Xft for font renderingdkf2009-10-101-4/+57
| | | | | | FossilOrigin-Name: 43d696b5d64b4f1bd4cae970187f45ab221aa8b7
| * Backport of "misconfigured xft font engine" fixes.dkf2009-09-101-2/+15
| | | | | | FossilOrigin-Name: e4f4e763817eafb1e3380954d12a864c5615ed77
* | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-4/+4
| | | | | | | | | | using useful casts internally. FossilOrigin-Name: 142e016e7b17277d81257da90477297eb9aaa05a
* | Cast some NULLs to (void *) in order to quash "missing sentinel in function ↵stwo2011-01-061-2/+2
| | | | | | | | | | call" compiler warnings. FossilOrigin-Name: 81e50c85ed139b258d9edf452eaa784fb70dd374
* | * generic/tkInt.decls (TkDrawAngledTextLayout,TkDrawAngledChars,...):dkf2010-12-021-3/+3
| | | | | | | | | | | | | | Expose angled text API for Emiliano Gavilan. Still only in internal stub table. FossilOrigin-Name: 587a05d8adfb5f5b86a00bffa64f1ef59c34d968
* | Revise Tcl_Panic() calls ending with a newline removing the newline, because ↵nijtmans2010-11-191-2/+2
| | | | | | | | | | Tcl_Panic() outputs a final newline already FossilOrigin-Name: 870897bc1502c066afe8990a9381898f9e804d32
* | * unix/tkUnixRFont.c (GetFont): [Bug 2978410]: Do not use non-constantdkf2010-03-291-2/+11
| | | | | | | | | | | | initializers for structures, since HP-UX cc doesn't like it. FossilOrigin-Name: c73eca4f8f1d9d0425adeb273b9dadc6eab306b6
* | Corrected rounding of coordinates when working with fonts. [Bug 2824916]dkf2010-01-051-7/+24
| | | | | | FossilOrigin-Name: 7312a6c14ec6a078452dd26165003d425bbc4811
* | Revert my last commit on grounds it is more likely to cause problems than not.dkf2010-01-021-3/+1
| | | | | | FossilOrigin-Name: a431ef58c8df5f425060cff5206f733d72986fdb
* | Added point-size conversion, from Ubuntu port.dkf2010-01-021-1/+3
| | | | | | FossilOrigin-Name: eeffd2eab4d2cafa47bea10b057c0ad47d53e070
* | [Bug 1961455]: Draw underlines and overstrikes when using Xft.dkf2009-10-101-7/+118
| | | | | | FossilOrigin-Name: fbbba7171aabbf24e500271aaefb6608c2d2b1ff
* | Improve comment following request by Joe Englishdkf2009-09-091-2/+3
| | | | | | FossilOrigin-Name: 73ed6701d2d29bd502f99b3fd0e4d436c18dcaf0
* | Try to make Tk more resilient in the face of Xft allocation failures.dkf2009-09-091-2/+14
| | | | | | FossilOrigin-Name: a562dd0e2635b23f4ead0764e54fba89637c247e
* | TIP#119 implementation. [Patch 1611359]dkf2008-11-221-35/+257
| | | | | | FossilOrigin-Name: a2e7757328c76f4c5ad3683505f48097483a7ca3
* | fix [Bug 2226093] const changes not all correctnijtmans2008-11-051-5/+9
| | | | | | | | | | | | more internal -Wwrite-string warning fixes FossilOrigin-Name: 00402a8ec7175be90fe0eec093d595f84a185107
* | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-6/+6
|/ | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* Try a fallback font if XftFontOpenPattern() fails in GetFontjenglish2008-03-121-4/+25
| | | | | | (workaround for [Bug 1090382]). FossilOrigin-Name: b2aa5f43fc070263b357344f167555ba3c61c694
* Re-fix strict-aliasing warnings reintroduced by last patch.jenglish2008-01-281-24/+15
| | | FossilOrigin-Name: 53d831b966d207beeaac77556a79c28f52f1764d
* Fix [Bug 835848].jenglish2008-01-271-9/+14
| | | | | | Use FcTypeDouble for XFT_SIZE attribute. FossilOrigin-Name: 2b4223521bd4052990a0d36993faa6797e152225
* Merged common code from InitFont() and TkpGetFontAttrsForChar(),jenglish2008-01-271-113/+86
| | | | | | | | | factored into GetTkFontAttributes() and GetTkFontMetrics(). Removed write-only struct UnixFtFont member 'drawable'. Removed unneeded double-pointer indirections. Ensure that TkFontAttributes.family member is a Tk_Uid as specified. FossilOrigin-Name: c30ce69ba8d7452a6383534ad6fbc593670689f4
* Fix crash introduced by previous fix, exposed under newer fontconfigjenglish2007-05-151-4/+1
| | | | | | libraries [Bug 1717830 again]. FossilOrigin-Name: 77e336e82a38c483594c3b3a12ca44f8aa016ba7
* Fix various memory leaks [Bug 1717830], [Bug 800149].jenglish2007-05-151-21/+14
| | | FossilOrigin-Name: 102f844c23fc82e606b02a572370d7c8abf273b2
* Properly cast sentinel arguments to variadic functionjenglish2007-05-071-3/+4
| | | | | | (fixes "warning: missing sentinel in function call", [Bug 1712001]) FossilOrigin-Name: ad7f6a205ca5a4484e6c05d86d4d5a6b12a8488e
* Tackle [Bug 1711985]dkf2007-05-031-12/+15
| | | FossilOrigin-Name: 4440e13a9654ef13ef444975d65718503760fd39
* Minor cleanupdkf2007-02-271-13/+7
| | | FossilOrigin-Name: 426f6150ad85222e51b097d02f04221c60d803a6
* Less of that K&R or wrongly indented function header style!dkf2007-02-221-13/+20
| | | FossilOrigin-Name: 9b0470e090f9e2ece65f8399b3c318ab16e668d9
* TIP 300 IMPLEMENTATIONkennykb2006-12-011-1/+61
| | | FossilOrigin-Name: c2f09fce1e370748b29a5a3709a29153dfd4fc20
* * unix/tkUnixRFont.c (TkpMeasureCharsInContext): Copied over fromrmax2006-03-231-1/+11
| | | | | | tkUnixFont.c to fix compiling with --enable-xft . FossilOrigin-Name: c2f98ca428ac6d22e48cf6451581c28eae309596
* Scope the config a bit better; it only needs to be visible inside one function.dkf2006-02-071-7/+7
| | | FossilOrigin-Name: c60c8562166cefb48801bd97348cbd75c8dd2a26
* Use the fact that ckalloc() *never* returns NULL to optimize the codedkf2006-02-071-19/+7
| | | FossilOrigin-Name: 2e334022c7f3595e21393510a7aad5daf3fdbc69
* ANSIfydkf2005-11-141-110/+134
| | | FossilOrigin-Name: 3feb41c9e39a0d01207526bf95d7e8ee7d11e26a
* Tk_MeasureChars: Use Tcl_UtfToUnichar() for lax UTF-8 parsingjenglish2005-04-191-7/+7
| | | | | | instead of strict parsing with FcUtf8ToUcs4() [fix/workaround for #1185640] FossilOrigin-Name: 437a4bc8fbbe7d36cb0691196686f8e2a6b0d1d2
* Tk_DrawChars: Check for short integer overflow in x,y coordinatesjenglish2004-11-281-3/+3
| | | | | | [Fixes: #942320 "Tk, Xft, text and long lines"] FossilOrigin-Name: 7e5be4204b02888c340f47b0240e86a029cf8ba2
* TIP #205 "Use pkgconfig Database to Register Xft Support".jenglish2004-10-081-1/+18
| | | | | | (xref: patch #971980) FossilOrigin-Name: 12ea6256b6431711c6c03c7c3afb71015eaae807
* Removed stupid type error introduced when adding style to code.dkf2003-11-171-2/+3
| | | FossilOrigin-Name: 5f8d799df1485106d29d2de17a8d6c31360c26d5
* Basic style guide fixes for tkUnixRFont.cdkf2003-10-291-269/+258
| | | FossilOrigin-Name: 1b7c95eddfec30cf5dd7c912ae72edfd24bc3fe9
* Fix for [Bug#751553] "Xft: [font configure] does not update in-use fonts".jenglish2003-06-091-29/+87
| | | | | | | Fixed TkpGetSubFonts() to return information about all subfonts, not just the first one. FossilOrigin-Name: feabf97d971991277fb78e9a73a62cfd26c97f78
* * unix/tkUnixRFont.c (InitFont): Fill in TkFontAttributes fromjenglish2003-05-311-19/+25
| | | | | | | pattern returned from GetFont (actual font) instead of the query pattern (requested font). FossilOrigin-Name: d6714ac282fd43d031e3fe9829e7a1a0b9507196
* Changes from Keith Packard's version:jenglish2003-05-311-15/+48
| | | | | | | | | | | | | | | | + Added copyright notice + Fix infinite loop in Tk_MeasureChars when TK_WHOLE_WORDS is specified + Fix for crash in TkpGetNativeFont when XftXlfdParse() fails + TkpGetFontFromAttributes: use XftPatternCreate() and XftPatternAddString(... XFT_FAMILY ...) instead of XftPatternBuild() to initialise pattern; fixes crash when faPtr->family == NULL + Workaround for Tcl bug where malformed UTF-8 text can get passed to Tk_MeasureChars / Tk_DrawChars. + TkpGetFontFromAttributes: don't request 0-pixel fonts + TkpGetNativeFont: don't use FcNameParse, since that tends to always succeed, causing the usual Tk font parsing to be skipped. FossilOrigin-Name: 6fe5718da2ffc603a68a5409af3e05c827bf953c