summaryrefslogtreecommitdiffstats
path: root/win/tkWinFont.c
Commit message (Collapse)AuthorAgeFilesLines
* [Bug 1825353]: Backported patch for tiny fixed font on Russian Windows systems.patthoyts2009-10-291-3/+19
| | | FossilOrigin-Name: 51dfccf0af4395d55e75e8f5eaaa572446e8345a
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* We must specify the lowest Windows version wepatthoyts2007-12-101-15/+24
| | | | | | | | | | | intend to support. In particular the SystemParametersInfo API doesn't like to receive structures that are larger than it expects which affects the font assignements. Set to Win98 support. Handle failure to read the system parameters. This causes ttk/fonts.tcl to set any missing named fonts. FossilOrigin-Name: afec417114eec560d811873f88018a658accf477
* Minor reshuffle for claritypatthoyts2007-11-171-5/+5
| | | FossilOrigin-Name: de564ca78d6d1e8bc388d62dd0ec425ad05483cb
* * tests/listbox.test, tests/panedwindow.test, tests/scrollbar.test:hobbs2007-10-301-8/+9
| | | | | | | | | | | | | | | | | | * library/bgerror.tcl, library/dialog.tcl, library/listbox.tcl: * library/msgbox.tcl, library/optMenu.tcl, library/tclIndex: * library/tkfbox.tcl, library/demos/floor.tcl, library/demos/rmt: * library/demos/tcolor, library/demos/text.tcl: * library/demos/twind.tcl, library/demos/widget: Buh-bye Motif look * library/ttk/fonts.tcl: Update of Tk default look in 8.5 * macosx/tkMacOSXDefault.h: Trims border sizes, cleaner X11 look * unix/tkUnixDefault.h: with minor modifications for Win32/Aqua. * win/tkWinDefault.h: Uses Tk*Font definitions throughout for * win/tkWinFont.c: classic widgets. [Bug #1820344] * library/obsolete.tcl (::tk::classic::restore): This restores changes made to defaults in 8.5 using the 'option' command, segmented into logical groups. FossilOrigin-Name: f108de53ea5bbca88ddb0d911bbc8a30fd9a894f
* Fixed leak in CreateNamedFont spotted by das.patthoyts2007-10-231-12/+6
| | | FossilOrigin-Name: 9dcfea84bc547f351ea4be05c066d7458f7a3de2
* Assorted minor cleanups.dkf2007-09-081-74/+71
| | | FossilOrigin-Name: 2a5cff56d4709ff5cc546122512d6375136e11a2
* TIP #145 implementationpatthoyts2007-05-041-1/+142
| | | FossilOrigin-Name: 5c1d2633c30b24b2068350342eb9d853e153dfa6
* various "const" additions, in line with TIP #27nijtmans2007-01-181-2/+2
| | | FossilOrigin-Name: f6f6ebc114fdec7534619b04fca232c39139ee51
* More warning squelching (mostly uninit variable warnings)dkf2007-01-121-2/+2
| | | FossilOrigin-Name: 17ca9d3acb56f73c215e68dd2e2fb44e087b6fb8
* Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-111-10/+11
| | | FossilOrigin-Name: 07047209ee3fabf64df75844ccc749416e247cd7
* TIP 300 IMPLEMENTATIONkennykb2006-12-011-1/+57
| | | FossilOrigin-Name: c2f09fce1e370748b29a5a3709a29153dfd4fc20
* * generic/tkFont.c: implementation of ATSUI text renderingdas2006-03-221-1/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 FossilOrigin-Name: 69379436a2a1cee0a35fbf45186cdb6a053ca4fa
* ANSIficationdkf2005-12-021-565/+562
| | | FossilOrigin-Name: 1be88f1039a57d37b1f4567340d02ca39ddb3575
* * tests/canvText.test:mdejong2004-08-091-2/+2
| | | | | | | | | | | * win/tkWinFont.c (Tk_MeasureChars): Fix for text wrapping problem that appeared using canvas text under Win32. A long wrapping string that had leading spaces was being incorrectly wrapped. This change makes the Win32 implementation behave the same as the Unix implementation. [Patch 1006286] FossilOrigin-Name: f7d4d2befd956699824a4b8a68ba91a9b3783146
* * win/tkWinFont.c (FindSubFontForChar): corrections to dkf patchhobbs2004-05-051-14/+16
| | | | | | to handle subFontPtrPtr in EnumFontFamilies callback. FossilOrigin-Name: f7b67c7b29143b8daa179cacbc0b144e000cf14e
* Fix FMR in subfont handling on Windows. [Bug 618872]dkf2004-05-051-15/+31
| | | FossilOrigin-Name: 70d0cdfbb5df329b0a421625df0b0857ba35c28d
* * 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: FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
* * (Tk_MeasureChars): Fix bugs shown by the test suitecc_benny2003-12-181-18/+29
| | | | | | [#861777]. Clarify comment on TK_AT_LEAST_ONE. FossilOrigin-Name: da9f8261a9c0b63438dcb4563096653a19b27387
* * (Tk_MeasureChars): Initialize size.cx in case of errors.cc_benny2003-12-101-2/+5
| | | | | | | Initialize lastsize (fixes bug with wrong *lenghtPtr results in case no chars fit at all). FossilOrigin-Name: 5179de5790c28412b7456708a5b67fd998c74bb9
* * (Tk_MeasureChars): Fix indentation. Fix memory leak. Fixcc_benny2003-12-051-40/+32
| | | | | | handling of TK_WHOLE_WORDS. FossilOrigin-Name: 1363550c3c772e92ca590b90887f4128e4ebad68
* font measurement fixvincentdarley2003-12-041-121/+130
| | | FossilOrigin-Name: 8d4352805895fcb58e1d0ac77235b2a971083fa7
* * win/tkWinInt.h:hobbs2003-02-261-2/+36
| | | | | | | | * win/tkWinDraw.c: * win/tkWinFont.c (Tk_DrawChars): add support for simple XOR text drawing on Windows. [Patch #685388] (martin) FossilOrigin-Name: e9b026f7cef7dc4a2ab3270e627f278c94b131fd
* * win/tkWinFont.c: Additional changes to fix CONST warnings ondgp2002-08-051-2/+2
| | | | | | * win/tkWinWM.c: Windows due to latest patch. Tks Vince Darley. FossilOrigin-Name: b4beb44ec364b878092bb55f550dd0389efba45d
* * win/tkWinInt.h: declaration for TkWinGetUnicodeEncodinghobbs2002-04-121-7/+5
| | | | | | | | | * win/tkWinDialog.c (GetFileNameW): use TkWinGetUnicodeEncoding * win/tkWinInit.c (TkpDisplayWarning): use TkWinGetUnicodeEncoding * win/tkWinFont.c: use TkWinGetUnicodeEncoding instead of static unicodeEncoding. FossilOrigin-Name: ca09d55644cd9006092eec025b62e54ee611bf11
* Added labelframe widget. TIP#18.pspjuth2001-09-261-1/+6
| | | FossilOrigin-Name: bc61e5ede90133d12d784a905cdf7b2ffb5aef5f
* minor cast fixes to prevent 64bit warningshobbs2001-09-211-10/+11
| | | FossilOrigin-Name: ea7bd071d695c4a3869d36be8fb5dbebf393f994
* * win/tkWinMenu.c (DrawWindowsSystemBitmap): Use scratchDCericm2000-08-291-1/+2
| | | | | | | | | | | | | | for determining the source's logical coordinates. Patch from [Bug: 6134 (Markus Oberhumer)]. * win/tkWinMenu.c (SetDefaults): Compute the indicatorDimensions[] under Windows NT/2000 in the same way as under Windows 95/98. Patch from [Bug: 6134 (Markus Oberhumer)]. * win/tkWinFont.c (GetScreenFont): Added a memset() to pacify memory checkers. Patch from [Bug: 6134 (Markus Oberhumer)]. FossilOrigin-Name: fbfb2fa6b53612256c15d7183620b6f69ce32f1c
* * win/tkWinFont.c (LoadFontRanges): improved support for all charshobbs2000-05-131-1/+12
| | | | | | | in 0-255 range for bitmap ANSI fonts. May be improved to handle bitmap non-ANSI fonts in the future. [Bug: 2172] FossilOrigin-Name: 98d9aa794b91185874a1b5bd0778436502a4ccba
* * win/tkWinFont.c (GetScreenFont): corrected adjustment againsthobbs2000-04-071-8/+14
| | | | | | LC_FACESIZE limitation for NT. [Bug: 4931] FossilOrigin-Name: 7f44776861dfc41601aae81138b49f1378019ee1
* * win/tkWinDialog.c: added unicode-aware open/save file dialogshobbs2000-03-311-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | * win/tkWinFont.c (TkpFontPkgInit): move private ref to platformId to TkWinGetPlatformId * win/tkWinMenu.c (SetDefaults): moved private use of versionInfo to TkWinGetPlatformId and removed all code for (versionInfo.dwMajorVersion < 4) (== Win32s) * win/tkWinX.c: * win/tkWin32Dll.c: moved TkWinGetPlatformId to tkWinX.c * win/tkWinInit.c: added TkWinXInit to TkpInit to ensure that its called for static Windows shells. [Bug: 3647] * win/tkWinInt.h: * win/tkWinX.c: * win/tkWinDraw.c (SetUpGraphicsPort): * win/tkWinScrlbr.c (UpdateScrollbar): removed use of tkpIsWin32s * win/tkWinInt.h (TkWinDCState struct): added bkmode value * win/tkWinDraw.c (TkWinGetDrawableDC, et al): added support for properly transparent dashed lines on Windows. [Bug: 4617] FossilOrigin-Name: 4da507a963ef135744aef559227cc6d7a4335951
* * win/tkWinFont.c: corrected symbol font use to only work on 8-bithobbs2000-02-081-4/+6
| | | | | | | | | | | characters [Bug: 2406] * README: * unix/configure.in: * win/configure.in: * generic/tk.h (TK_RELEASE_SERIAL): Moved to 8.3.0 patchlevel FossilOrigin-Name: 740a11d2da11146d7908e091b9477fbdd961abd8
* * win/Makefile.in (install-*): reduced verbosity of installhobbs2000-02-011-2/+9
| | | | | | | | | | | | | | * win/tkWinPixmap.c (XGetGeometry): added support for windows in XGetGeometry [Bug: 4069] * win/tkWinFont.c (GetScreenFont): fixed possible mem overrun with long font names [Bug: 4108] * win/tkWinDialog.c: added EnableWindow calls to dialogs to correct for possible loss of control in parent Tk toplevel [Bug: 1212 et al] FossilOrigin-Name: 97a60a4857c1e41eedeefeffdb0f432156ccce64
* * win/tkWinCursor.c: added support for Windows cursors tohobbs1999-12-161-4/+4
| | | | | | | | | | | | TkGetCursorByName (.ani, .cur) using -cursor @<filename> (Ascher) [Bug: 1350] * win/tkWinWm.c: fixed 'wm deiconify' to update position of the toplevel if event is waiting before mapping. (Mao) [Bug: 3687] This removes the need for 'update idle' before 'wm deiconify' on Windows. FossilOrigin-Name: e7aa2a517ac9d86186daa5274230776997172f85
* * Merged 8.1 branch into the main trunkstanton1999-04-161-256/+1976
| | | FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
* * win/tkWinFont.c (Tk_MeasureChars): Added a workaround for a bugstanton1999-02-041-3/+13
| | | | | | in GetTextExtentExPoint on Win NT 4.0/Japanese. [Bug: 1006] FossilOrigin-Name: 9946f072a52a9c97ed34d2cfede954ea19469c84
* Replaced SCCS strings, fixed binary filesstanton1998-09-141-1/+1
| | | FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
* Bug Fix: It was assumed that kerning did not exist when the code was written.surles1998-06-111-69/+54
| | | | | | | This behavior has since been changed. Added new API calls to get the font measurment for chars (kerning or not) FossilOrigin-Name: 02cb8cce3aec4c1c46e9e56cbed0789cd1d3e861
* Initial revisionrjohnson1998-04-011-0/+643
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4