summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge 8.6culler2021-04-271-1/+1
|\
| * Remove unneeded portBounds field from TkMacOSXDrawingContext; add more ↵culler2021-04-221-1/+1
| | | | | | | | graphics debugging tools.
* | Fix [c974643a39]: memory leak in tkMacOSXFont.cculler2021-04-261-1/+2
|/
* More implicit type-casts, for C++ compatibility.jan.nijtmans2021-02-021-1/+1
|
* Fix the build on macOS 10.6.marc_culler2020-12-111-5/+2
|
* Remove some more unneeded code.marc_culler2020-11-091-2/+1
|
* Fix more warnings, related to -Wshadow, now in MacOSX codejan.nijtmans2020-10-021-29/+30
|
* Rename (internal) TkMacOSXDrawableView() -> TkMacOSXGetNSViewForDrawable()jan.nijtmans2020-09-021-1/+1
|
* Eliminate MODULE_SCOPE wrapper function for TkMacOSXDrawable(). Rename ↵jan.nijtmans2020-09-021-1/+1
| | | | (internal) TkMacOSXDrawableWindow() to TkMacOSXGetNSWindowForDrawable(). Code (type-cast) cleanup
* Rename the NSGraphicsContext macro and add a flipped parameter. Fix accent ↵culler2020-08-251-1/+1
| | | | colors on old macs.
* Fix one more compilation issue with old macOS targets.culler2020-08-251-2/+1
|
* Edit comments, make some stylistic changes, remove an unused function parameter.culler2020-08-211-1/+1
|
* merge core-8-6-branchfvogel2020-07-121-123/+71
|\
| * Fix compiler warning: macOS string length is unsigned.culler2020-05-201-1/+1
| |
| * Add (and use) new internal function TkUtfAtIndex(), which does the same as ↵jan.nijtmans2020-05-201-25/+8
| |\ | | | | | | | | | Tcl_UtfAtIndex() only it protects against ending in the middle of a 4-byte UTF-8 sequence. This should fix another part of [a179564826] when handling copy-pasted Emoji in Text/Entry (and other) widgets.
| | * Fix TkUtfAtIndex(), still was not 100% correct.jan.nijtmans2020-05-201-23/+6
| | | | | | | | | Simplify TKNSString::DString, since Tcl_UniCharToUtf() is already capable of surrogate handling with a proper Tcl version.
| | * Use Glyph indexing in more places (underscoring and canvas text and some more)jan.nijtmans2020-05-191-4/+4
| | |
| | * Add surrogate-aware TkUtfAtIndex and TkNumUtfChars. This is enough to allow ↵culler2020-05-191-2/+2
| |/ | | | | | | editing emoji text (without variant selectors) in Entry widgets on macOS.
| * Simplify Aqua text handling by moving encoding/decoding into the TKNSString ↵culler2020-05-171-91/+53
| | | | | | | | class.
| * Don't use trans_chars array on MacOSX any more.jan.nijtmans2020-05-171-1/+1
| |\
| | * Move platform-specific declarations into platform-specific header files.marc_culler2020-05-151-3/+3
| | |
| * | Fix compiler errors and warnings on macOS 10.6 (Snow Leopard)culler2020-05-161-2/+5
| |/
| * Create TKNSString which implements Christopher Chavez's suggestion in ↵marc_culler2020-04-241-39/+39
| | | | | | | | [4cda3ff048] for more efficient conversion from TclUtf to UTF-16.
* | Apply another patch by Christopher Chavez that fixes the jerk of strings on ↵fvogel2020-04-191-12/+8
|/ | | | aqua when selecting text (see the ticket). There is no functional change on Windows and Linux in this patch.
* Fix [89354dae31]: Avoid clipping in Aqua TkpDrawCharsInContext. Clipping ↵culler2020-04-151-22/+29
|\ | | | | | | does not work and is also inefficient.
| * Fix a glitch caused by coercion of a float to an int. Thanks to Christoper ↵culler2020-04-141-14/+14
| | | | | | | | Chavez for finding and analyzing the bug.
| * Clipping can never work! Try again.marc_culler2020-04-141-17/+17
| |
| * Fix [89354dae31]: Text display artifacts can be produced by antialiasing.culler2020-04-131-0/+6
|/
* Better implementation of TkUtfToUniChar(), one that doesn't require ↵jan.nijtmans2020-04-061-7/+166
|\ | | | | | | cooperation of Tcl (TCL_UTF_MAX>3). Just let Tk do the splitting of 4-byte UTF-8 sequences into surrogates.
| * Make MODULE_SCOPE functions start with "Tk". Also simplify ↵jan.nijtmans2019-12-041-25/+18
| | | | | | | | TkUtfToNSString(), making use of Tcl_UtfToUniCharDString()
| * Edit comments, add tests for NULL pointers.culler2019-11-181-13/+29
| |
| * remove printf("TkSelGetSelection\n");jan.nijtmans2019-11-181-3/+3
| |
| * Implement non-BMP unicode for macOS when TCL_UTF_MAX = 3 by encoding ↵culler2019-11-181-27/+129
| | | | | | | | surrogates as 3-byte UTF-8-ish sequences.
| * Fix [90d555e088]: work around an Apple bug which causes NSFontManager to ↵culler2019-11-171-4/+19
| |\ | | | | | | | | | find fonts with unwanted traits in macOS Catalina.
| | * Fix [90d555e088]: In Catalina Apple's NSFontManager creates fonts with ↵culler2019-11-151-4/+19
| | | | | | | | | | | | unwanted traits
| * | On macOS make DrawCharsInContext accept byte sequences which contain UTF-16 ↵culler2019-11-161-1/+22
| |/ | | | | | | surrogates encoded as 3-byte UTF-8-ish subsequences, so the Emoji demo works.
| * Add support for 4 keycodes on Windows (Mail, AudioMedia, Launch0 and ↵jan.nijtmans2019-11-131-1/+1
| | | | | | | | | | | | Launch1), which some keyboards might have. Add more header-files, with available keycodes on various platforms, and add some missing keysyms to ks_names.h (adapted from X11R6). This improves compatibility for Windows/MacOSX compared to X11R6.
| * Edit a comment.culler2019-11-041-3/+3
| |
| * But we shouldn't call CFRelease on the font returned by [NSFont ↵culler2019-11-041-0/+2
| | | | | | | | userFixedPitchFontOfSize:11]
| * Fix [855049e799]: Apple's system fixed font has an invalid familyName in ↵culler2019-11-041-1/+11
| |\ | | | | | | | | | macOS 10.15.1
| | * Use [NSFont userFixedPitchFontOfSize:11] instead of ↵marc_culler2019-11-031-14/+11
| | | | | | | | | | | | CTFontCreateUIFontForLanguage(fixedPitch, 11, NULL) to get a valid fixed pitch font.
| | * Work around a bug in [NSFont familyName] which Apple introduced in macOS 10.15.1marc_culler2019-11-011-1/+14
| |/ |/|
| * Fix a few typo'sjan.nijtmans2019-10-151-1/+1
|/
* Fix [f3c5467f07]: various spelling fixes (from Christopher Chavez)fvogel2019-07-021-1/+1
|
* Mitigate future merge conflict headaches.culler2019-04-171-89/+104
|
* Mac code cleanup. Move interfaces for subclasses of AppKit classes toculler2018-11-261-6/+0
| | | tkMacOSXPrivate.h when possible. Also Utility windows cannot go fullscreen.
* Tweak a couple of #define constants for building on OSX 10.6.culler2018-10-291-1/+1
|
* Deal with Mojave deprecations and remove unneeded code.culler2018-10-211-9/+1
|
* Add explanatory comments in TkpMeasureCharsInContext() on macOS.fvogel2018-10-081-2/+30
|
* Fix [6437e8d00d] (font-24.5 test fails on macOS and Linux) without ↵fvogel2018-10-071-4/+4
| | | | regression in canvText test. This is the fix for macOS.