summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixFont.c
Commit message (Collapse)AuthorAgeFilesLines
* Slightly use of more "int" in stead of double, for 100% compatibility at ↵bug_434d294dfjan.nijtmans2017-05-191-6/+6
|\ | | | | | | script level.
* \ merge trunk. jan.nijtmans2017-05-181-1/+1
|\ \ | |/ | | Make "font actual" return integers, for compatibility.
* | Another attempt to fix ↵jan.nijtmans2017-05-151-2/+2
|/ | | | [434d294df8b053246ee86e7898d06bc3a6d1d771|434d294df8], this time (hopefully) suitable for 8.6. (less changes than the original attempt)
* Do everything the other way round. Leave things how they were on OS X ↵fvogel2016-12-301-1/+4
| | | | (revert [a076cf64] and [42e0339e]), and fix TkpDrawCharsInContext() on Win and Linux in case these platforms at some point of time decide to define TK_LAYOUT_WITH_BASE_CHUNKS and TK_DRAW_IN_CONTEXT to true
* Enhanced proposed fix [6c0d7aec67]: unicode text input Windows 8. More ↵jan.nijtmans2016-09-191-7/+15
|\ | | | | | | places where Unicode surrogate handling could be improved.
| * More simplificationsjan.nijtmans2016-09-191-6/+14
| |
| * Rename TkUtfToUniChar32 to TkUtfToUniChar2, and various simplifications ↵jan.nijtmans2016-09-161-5/+0
| | | | | | | | needing less #ifdef's
| * Patch from Christian Werner, for evaluationjan.nijtmans2016-09-161-1/+5
| |
| * Fix use of XMaxTransChars in stead of TCL_UTF_MAX in some places. This ↵jan.nijtmans2016-08-311-4/+4
| |\ | |/ |/| | | | | should prevent possible buffer overflow when TCL_UTF_MAX=6 Micro-optimizations in tkEntry and ttkEntry
| * Make Tk compile warning-free against TIP-389-enabled Tcl 8.7. No change of ↵jan.nijtmans2016-03-161-1/+1
|/ | | | functionality, since font-names generally don't contain out-of-BMP Unicode characters (if they do in the future, that still can be fixed then).
* minor improvements to flag handlingdkf2012-07-311-2/+2
|
* Purge RCS Keywordsdgp2011-06-081-2/+0
|\
| * Purge RCS Keywords.dgp2011-06-081-2/+0
| |\
| | * Purge RCS Keywords.dgp2011-06-081-2/+0
| | |
| | * * unix/tkUnixFont.c (Ucs2beToUtfProc, UtfToUcs2beProc):hobbs2006-10-051-35/+49
| | | | | | | | | | | | | | | | | | (TkpFontPkgInit, encodingAliases): Correct alignment issues in encoding conversion. Call ucs-2be "unicode" on big-endian systems. [Bug 1122671]
| | * Fix problems caused when XServer returns invalid font names. [Bug 1475865]dkf2006-04-251-2/+20
| | |
| | * * unix/tkUnixFont.c (FontMapLoadPage): reorder char[] decls tohobbs2005-04-121-3/+3
| | | | | | | | | | | | avoid possible segv. Minimal fix for [Bug 1122671]
| | * * unix/tkUnixFont.c (GetFontAttributes): place extra check for NULLhobbs2003-10-291-1/+8
| | | | | | | | | | | | family against bad X servers.
| | * * unix/tkUnixFont.c (Tk_DrawChars): do not make XGetGeometry callhobbs2003-07-191-3/+12
| | | | | | | | | | | | | | | | | | that prevents overwidth lines as it requires a roundtrip call to the X server for every string drawn. Hard-code max width to 32768 until a beter solution to get max width is made.
| | * * unix/tkUnixFont.c: use gb2312-raw as the alias for gb2312*hobbs2003-05-151-2/+2
| | | | | | | | | | | | | | | | | | charset fonts. gb2312.enc was made to be euc-cn for Tcl because that is what is most often meant, but X really wants the original (-raw) gb2312 encoding. [Bug 557030]
* | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-13/+12
| | | | | | | | | using useful casts internally.
* | | * generic/tkInt.decls (TkDrawAngledTextLayout,TkDrawAngledChars,...):dkf2010-12-021-3/+3
| | | | | | | | | | | | | | | Expose angled text API for Emiliano Gavilan. Still only in internal stub table.
* | | Fix some gcc strict-aliasing warnings (discovered with "-Wstrict-aliasing=2"nijtmans2010-05-261-7/+7
| | |
* | | Corrected rounding of coordinates when working with fonts. [Bug 2824916]dkf2010-01-051-10/+32
| | |
* | | - eliminate some unnessary type castsnijtmans2009-01-281-2/+2
| | | | | | | | | | | | | | | - some internal const decorations - spacing
* | | TIP#119 implementation. [Patch 1611359]dkf2008-11-221-3/+280
| | |
* | | fix [Bug 2226093] const changes not all correctnijtmans2008-11-051-6/+8
| | | | | | | | | | | | more internal -Wwrite-string warning fixes
* | | more internal -Wwrite-strings warning fixesnijtmans2008-11-021-11/+17
| | |
* | | Add "const" to many internalnijtmans2008-10-171-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | const tables, so those will be put by the C-compiler in the TEXT segment in stead of the DATA segment. This makes those table sharable in shared libraries.
* | | Greatly clean up Tk's handling of the writability of the Tcl result object.dkf2008-10-051-4/+5
| | |
* | | Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-62/+61
|/ /
* | Comment typo nitdkf2007-02-281-2/+2
| |
* | Fix silly typos (thanks to Andreas Kupries for finding)dkf2007-02-271-69/+58
| |
* | Less of that K&R or wrongly indented function header style!dkf2007-02-221-50/+49
| |
* | TIP 300 IMPLEMENTATIONKevin B Kenny2006-12-011-1/+39
| |
* | * unix/tkUnixFont.c (Ucs2beToUtfProc, UtfToUcs2beProc):hobbs2006-10-051-35/+45
| | | | | | | | | | | | (TkpFontPkgInit, encodingAliases): Correct alignment issues in encoding conversion. Call ucs-2be "unicode" on big-endian systems. [Bug 1122671]
* | Stop crashes when bad font names received from XServer. [Bug 1475865]dkf2006-04-251-3/+20
| |
* | * generic/tkFont.c: implementation of ATSUI text renderingdas2006-03-221-3/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkInt.h: in TkAqua provided by Benjamin * generic/tkTextDisp.c: Riefenstahl. [Patch 638966] * library/demos/unicodeout.tcl: * macosx/tkMacOSXFont.h (new file): * macosx/tkMacOSXFont.c: * tests/font.test: * unix/tkUnixFont.c: * win/tkWinFont.c: * generic/tkFont.c: moved MODULE_SCOPE declarations of * generic/tkFont.h: font helper procs into header files. * macosx/tkMacOSXButton.c: * macosx/tkMacOSXFont.h: * macosx/tkMacOSXMenubutton.c: * macosx/Wish.xcode/project.pbxproj: add new tkMacOSXFont.h file, * macosx/Wish.xcodeproj/project.pbxproj: turn off dead code stripping as it interferes with -sectcreate (rdar://4486223). * macosx/Wish.xcode/default.pbxuser: add TCLLIBPATH=/Library/Tcl * macosx/Wish.xcodeproj/default.pbxuser: env var setting to tktest. * unix/configure.in: fix detection of symbols build when enabling TkAqua debug code; filter nm output of libtclstub better to avoid error on intel macs [Bug 1415789]. * unix/configure: autoconf-2.59
* | space->tabdkf2006-02-071-20/+20
| |
* | missing commas; typos?dgp2005-11-141-4/+4
| |
* | ANSIfydkf2005-11-141-683/+675
| |
* | * unix/tkUnixFont.c (FontMapLoadPage): reorder char[] decls tohobbs2005-04-141-3/+3
| | | | | | | | avoid possible segv. Minimal fix for [Bug 1122671]
* | * generic/tk3d.c: All uses of 'panic' (the macro) changeddavygrvy2004-01-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tkBind.c: to 'Tcl_Panic' (the function). The #define * generic/tkBitmap.c: of panic in tcl.h clearly states it is * generic/tkCanvArc.c: deprecated in the comments. * generic/tkCanvBmap.c: [Tcl Patch 865264] * generic/tkCanvImg.c: * generic/tkCanvLine.c: * generic/tkCanvPoly.c: * generic/tkCanvText.c: * generic/tkCanvWind.c: * generic/tkColor.c: * generic/tkConfig.c: * generic/tkCursor.c: * generic/tkError.c: * generic/tkEvent.c: * generic/tkFocus.c: * generic/tkFont.c: * generic/tkFrame.c: * generic/tkGC.c: * generic/tkGrid.c: * generic/tkImgBmap.c: * generic/tkImgPhoto.c: * generic/tkImgUtil.c: * generic/tkMenu.c: * generic/tkObj.c: * generic/tkPack.c: * generic/tkPlace.c: * generic/tkRectOval.c: * generic/tkSelect.c: * generic/tkText.c: * generic/tkTextBTree.c: * generic/tkTextDisp.c: * generic/tkTextImage.c: * generic/tkTextIndex.c: * generic/tkTextMark.c: * generic/tkTextWind.c: * generic/tkVisual.c: * generic/tkWindow.c: * mac/tkMacAppInit.c: * mac/tkMacAppearanceStubs.c: * mac/tkMacButton.c: * mac/tkMacDraw.c: * mac/tkMacEmbed.c: * mac/tkMacFont.c: * mac/tkMacInit.c: * mac/tkMacMenus.c: * mac/tkMacPort.h: * mac/tkMacSubwindows.c: * mac/tkMacWm.c: * mac/tkMacXStubs.c: * macosx/tkMacOSXEmbed.c: * macosx/tkMacOSXFont.c: * macosx/tkMacOSXMenus.c: * macosx/tkMacOSXNotify.c: * macosx/tkMacOSXPort.h: * macosx/tkMacOSXSubwindows.c: * macosx/tkMacOSXWm.c: * macosx/tkMacOSXXStubs.c: * unix/tkUnix3d.c: * unix/tkUnixColor.c: * unix/tkUnixEmbed.c: * unix/tkUnixEvent.c: * unix/tkUnixFocus.c: * unix/tkUnixFont.c: * unix/tkUnixSelect.c: * unix/tkUnixSend.c: * unix/tkUnixWm.c: * win/tkWin3d.c: * win/tkWinButton.c: * win/tkWinColor.c: * win/tkWinDialog.c: * win/tkWinDraw.c: * win/tkWinEmbed.c: * win/tkWinFont.c: * win/tkWinPixmap.c: * win/tkWinPointer.c: * win/tkWinScrlbr.c: * win/tkWinWm.c: * win/tkWinX.c:
* | * unix/tkUnixFont.c (GetFontAttributes): place extra check for NULLhobbs2003-10-281-1/+8
| | | | | | | | family against bad X servers.
* | * unix/tkUnixFont.c (Tk_DrawChars): do not make XGetGeometry callhobbs2003-07-191-3/+12
| | | | | | | | | | | | that prevents overwidth lines as it requires a roundtrip call to the X server for every string drawn. Hard-code max width to 32768 until a beter solution to get max width is made.
* | * unix/tkUnixFont.c: use gb2312-raw as the alias for gb2312*hobbs2003-05-151-2/+2
|/ | | | | | charset fonts. gb2312.enc was made to be euc-cn for Tcl because that is what is most often meant, but X really wants the original (-raw) gb2312 encoding. [Bug 557030]
* * unix/tkUnixFont.c (CreateClosestFont, CanUseFallback): use thehobbs2003-02-251-4/+4
| | | | first best font match in user font path. [Bug #647497] (dal zotto)
* Removed potentially fatal FMR in Unix font handling. No test because anydkf2003-02-201-22/+48
| | | | test would be very platform- and build-specific. [Bugs #618872 and #689357]
* * tests/text.test: properly return the number ofhobbs2002-10-171-4/+5
| | | | * unix/tkUnixFont.c (ControlUtfProc): bytes consumed. [Bug #624732]
* Applied companion patch for Tcl Patch 585105,dgp2002-08-051-4/+5
| | | | | | | | | | | | | | | | | | | | | updating Tk to use Tcl 8.4's fully CONST-ified interface, and fully CONSTifying Tk at the same time. This patch includes purging Tk of its last direct access to interp->result. [Bug 589853] The substantial changes include copying event sequence strings into Tcl_DStrings in tkBind.c, and copying [text] indices into Tcl_DStrings because parsing them involved overwriting them. If this causes performance trouble, that can be resolved by further converting them to Tcl_Obj's. The #defines USE_NON_CONST and USE_COMPAT_CONST have the same effect for Tk as they do for Tcl. (They actually change tcl.h)