mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Mac: Support disabling antialias. (LC Mi)
This commit is contained in:
parent
58f0a1f8e1
commit
76b96fc08b
@ -1089,12 +1089,12 @@ Before (beta) release 7.3:
|
||||
- Add fixes for 7.2 to version7.txt
|
||||
- Add hg history to version7.txt
|
||||
- Remove UF_VERSION_CRYPT_PREV and UF_VERSION_PREV.
|
||||
|
||||
Before release 7.3:
|
||||
- Rename vim73 branch to default (hints: Xavier de Gaye, 2010 May 23)
|
||||
|
||||
Vim 7.3:
|
||||
Patches to possibly include:
|
||||
- Mac: Patch to disable antialias. (LC Mi, 2008 Aug 23) Tested on 10.5 and
|
||||
10.4.
|
||||
- Patch for adding "J" flag to 'cinoptions': placement of jump label. (Manuel
|
||||
Konig, 2010 Feb 19) Update by Lech Lorens, Feb 22.
|
||||
Need another name, "J" is now used for Javascript.
|
||||
|
@ -173,6 +173,7 @@ ATSUStyle gFontStyle;
|
||||
ATSUStyle gWideFontStyle;
|
||||
# endif
|
||||
Boolean gIsFontFallbackSet;
|
||||
UInt32 useAntialias_cached = 0x0;
|
||||
#endif
|
||||
|
||||
/* Colors Macros */
|
||||
@ -4123,6 +4124,24 @@ draw_string_ATSUI(int row, int col, char_u *s, int len, int flags)
|
||||
ATSUSetAttributes(gFontStyle, 1, attribTags, attribSizes, attribValues);
|
||||
}
|
||||
|
||||
UInt32 useAntialias = p_antialias ? kATSStyleApplyAntiAliasing
|
||||
: kATSStyleNoAntiAliasing;
|
||||
if (useAntialias != useAntialias_cached)
|
||||
{
|
||||
ATSUAttributeTag attribTags[] = { kATSUStyleRenderingOptionsTag };
|
||||
ByteCount attribSizes[] = { sizeof(UInt32) };
|
||||
ATSUAttributeValuePtr attribValues[] = { &useAntialias };
|
||||
|
||||
if (gFontStyle)
|
||||
ATSUSetAttributes(gFontStyle, 1, attribTags,
|
||||
attribSizes, attribValues);
|
||||
if (gWideFontStyle)
|
||||
ATSUSetAttributes(gWideFontStyle, 1, attribTags,
|
||||
attribSizes, attribValues);
|
||||
|
||||
useAntialias_cached = useAntialias;
|
||||
}
|
||||
|
||||
#ifdef FEAT_MBYTE
|
||||
if (has_mbyte)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user