Kovid Goyal
5407fa72b4
Start work on rendering with CoreText
2017-12-10 20:28:06 +05:30
Kovid Goyal
e332522a61
Mark backend API in fonts.h header
2017-12-10 09:21:46 +05:30
Kovid Goyal
ed2e83654f
Draw emoji on macOS using CoreText rather than FreeType
...
Needed because FreeType cannot handle the latest version of the Apple
Color Emoji font, which probably uses SVG-in-OTF instead of SBIX.
Finishes up the color emoji implementation.
2017-12-09 12:01:43 +05:30
Kovid Goyal
e5d411b80d
Refactor font code
...
DRYer with global state stored in fewer places. And only round-tripping
through python for font selection, not face creation.
2017-11-11 18:14:22 +05:30
Kovid Goyal
98e93cb4bd
Workaround for broken CTFontCreateForString
2017-11-11 10:16:43 +05:30
Kovid Goyal
3592f82e4f
Implement fallback fonts in CoreText
2017-11-11 08:08:03 +05:30
Kovid Goyal
289cfe7584
Fix bold-italic variant not being auto-selected on macOS
2017-11-10 22:06:11 +05:30
Kovid Goyal
cccacfdf7c
Restore Apple's line height fudge factor on macOS
2017-11-10 17:38:36 +05:30
Kovid Goyal
541f389a06
Work on using FreeType to render on macOS as well
2017-11-10 15:39:53 +05:30
Kovid Goyal
5c582f7639
Start work on harfbuzz rendering on macs
2017-11-10 12:52:54 +05:30
Kovid Goyal
3ec64a17f8
Dont call the font change machinery when the actual size has not changed
2017-11-09 16:55:45 +05:30
Kovid Goyal
dd6108de5b
DRYer
2017-11-09 16:55:44 +05:30
Kovid Goyal
aa1b94aed0
Ensure descriptor is always set for coretext font objects
2017-11-09 16:55:44 +05:30
Kovid Goyal
a8bca1c119
Skip the rendering test on macOS
...
macOS is underpowered junk.
2017-11-09 16:55:44 +05:30
Kovid Goyal
d05ea312ef
Fix crash on macOS when failing to get font_descriptor
2017-11-09 16:55:44 +05:30
Kovid Goyal
da8bf5adc7
Add rendering tests
2017-11-09 16:55:44 +05:30
Kovid Goyal
ce0e5a893f
Make the showcase output a little nicer
2017-11-09 16:55:44 +05:30
Kovid Goyal
58be99a27e
Work on rendering ligatures correctly
2017-11-09 16:55:43 +05:30
Kovid Goyal
ae06879193
Mark unused pending implementation
2017-11-09 16:55:43 +05:30
Kovid Goyal
4726bcd210
Implement rendering of glyphs from font files in Freetype
2017-11-09 16:55:42 +05:30
Kovid Goyal
4ba17df570
Forward declaration of Face_Type needed
2017-11-09 16:55:42 +05:30
Kovid Goyal
38a5e76c50
More work on line based rendering
...
Should now build on all platforms
2017-11-09 16:45:45 +05:30
Kovid Goyal
729395c887
Release old hb_font when changing font size
2017-11-09 16:45:44 +05:30
Kovid Goyal
83e114d211
Implement new font methods for CoreText
2017-11-09 16:45:44 +05:30
lxcode
81f14edb49
Enable subpixel quantization and positioning
2017-11-01 15:37:43 -07:00
Kovid Goyal
4a27793651
DRYer CoreText
2017-09-15 10:45:17 +05:30
Kovid Goyal
697a7b78b3
macOS: Fix selecting fonts using full names (including sub-family) not working
...
Fixes #83
2017-08-24 19:16:12 +05:30
Kovid Goyal
58644e2b37
Function to get all fonts on macOS
2017-08-24 15:05:42 +05:30
Kovid Goyal
ddcd4daede
macOS: Fix wide characters having their right edges slightly truncated
2017-08-24 12:46:41 +05:30
Kovid Goyal
598c5d313b
A better (I hope) cell height calculation on OS X
...
See #42
2017-01-24 08:01:52 +05:30
Kovid Goyal
f4a6c42b48
Implement CTFace.__repr__
2017-01-14 10:59:52 +05:30
Kovid Goyal
3760d3d719
Also make the postscript name available
2017-01-14 09:32:55 +05:30
Kovid Goyal
426f960b23
Finish up Core Text based rendering
2017-01-11 14:13:37 +05:30
Kovid Goyal
8e7250eb7a
Use undeprecated orientation constant
2017-01-11 12:22:22 +05:30
Kovid Goyal
dff91759a2
Refactor the cell rendering code for greater re-use
...
Also start work on CoreText based rendering
2017-01-11 12:02:28 +05:30
Kovid Goyal
282d6faa5f
Scale font size by screen DPI on OS X
...
There seems to be no way to pass a custom DPI to CoreText
2017-01-11 05:53:55 +05:30
Kovid Goyal
edf9e580fe
Function to check if the font has a specified character
2017-01-11 03:34:43 +05:30
Kovid Goyal
d4f18d9581
Forgot to release the font names in the destructor
2017-01-11 03:34:43 +05:30
Kovid Goyal
a923660916
Get font names
2017-01-11 03:34:43 +05:30
Kovid Goyal
54285a0f17
Compile the core_text module using Objective-C
2017-01-11 03:34:43 +05:30