summaryrefslogtreecommitdiff
path: root/vcl/coretext
AgeCommit message (Collapse)Author
2013-11-15Handle also FORMAT_THIRTYTWO_BIT_TC_MASK_BGRATor Lillqvist
It seems to be used to draw something related to rulers, which we of course don't show at all, but apparently they get initialised anyway. So, to avoid a warning, handle this format, too. (As such, I am not sure if I handle BGRA the right way, but there is no way to check as nothing works properly in this branch at the moment anyway.) Change-Id: I6a7444872f90a34e1e568769a595443c45aa6722
2013-10-31Better warnings when CheckContext() failsTor Lillqvist
Change-Id: I94627e5b4efda92ac80a618e5aa4b0b33340f4ef
2013-10-21Remove GetKernPairs() with no implementationKhaled Hosny
I left only the Windows one because it being called (as GetKernPairs(0, NULL), but may be it does something, who knows). Change-Id: Iec05d61c8f0cd311a1158bb1cb07e4ee977f32fe Reviewed-on: https://gerrit.libreoffice.org/6260 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-10-15Avoid "<Error>: clip: empty path" messagesTor Lillqvist
Change-Id: I6f640c0c4459f8330261ca59145a10b7a624bbe8
2013-09-12cppcheck: fix Prefer prefix ++/-- operators for non-primitive typesJulien Nabet
Change-Id: I7495f86cb35b6f712cfb7d603f022f6f6c407266
2013-09-12iOS fix clip area in coretext contexttsahi glik
Change-Id: Ibaef9701ad4ba1bda1068c0dfa34f83c09a4e409 Reviewed-on: https://gerrit.libreoffice.org/5711 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2013-08-31fdo#62475 - remove visual noisePhilipp Riemer
This is a follow up commit to - 22d1beb78a475e4846af945afde1c4d6c263b5d6 - 1c7af455ab9345304a7ac48ce2e0310de2ac8a75 Change-Id: I102685391125f3b4f7bdf838f8bd17a2283d558d
2013-08-27MinorKhaled Hosny
Change-Id: I8a0c09087e522cbd8ee6a25b71541514e562a618
2013-08-27Related: fdo#68192 register bundled fontsCaolán McNamara
We have to register them one at a time, like windows, this means we detect our bundled opensymbol which makes the "format->bullets and numbering" preview work again. Doesn't however fix fdo#68192 yet, more magic smoke required. Change-Id: I430c91b48d96fb8d62e3b073898b72cf2b8ddea6
2013-08-20Re-work 8bit characters in source code, or remove them.Michael Meeks
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3 Reviewed-on: https://gerrit.libreoffice.org/5550 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-06fdo#67660: Fix memory mismanagement crashTor Lillqvist
The CTLayout constructor called CFRetain() on the associated CTTextStyle's attribute directory (a CFMutableDictionaryRef) and the destructor then called CFRelease() on it, even if there was no guarantee it was still the same CTTextStyle. And in the scenario that caused this crash, AquaSalGraphics::SetFont() had in fact deleted the original CTTextStyle and created a new one. It seems to me that these CFRetain() and CFRelease() calls are not necessary. Change-Id: I18e03965dd05d450955353f8c48f111c19a069e3
2013-07-21Fix link in commentKhaled Hosny
Change-Id: Ie9f5bfaa8230f97cbce1c26ef4bb86ae8e248d5e
2013-07-15fdo#66577: Cursor displaced in Web LayoutKhaled Hosny
Using lrint() helps a bit, but does not fix the issue entirely. Change-Id: Ib80e2c5a57d632f289e49322d3712c6321ae1ec2
2013-07-12Turn basebmp::Format into a proper enumStephan Bergmann
Change-Id: I4067c5039c7b5c74a1c144721dd7260de54dd2bf
2013-07-01Handle synthetic bold with Core TextKhaled Hosny
And fix the previous commit for synthetic italic a bit. Change-Id: Ia5977d53739b7a6eaaccbf3aeb24adb820ca05c6
2013-06-30Handle synthetic italic with Core TextKhaled Hosny
Core Text does not fake missing italic and bold (unlike ATSUI), so we have to do it on our own. This commit handles fake italic, bold is a bit harder. Change-Id: I4e705669638f67e3c8ec414f2cadd0c6daea9bcb
2013-06-30Fix debug codeKhaled Hosny
Change-Id: If8cd564b03712a8835788386afd83cc97ce04a98
2013-06-30fdo#66385: bad line spacing under Core TextKhaled Hosny
We should be setting mnExtLeading not mnIntLeading, at least this is what ATSUI code was doing. Change-Id: Ibe69da4ea60630a31593b538f55fd2cd95642bf9
2013-06-29Fix jitter when editing RTL textKhaled Hosny
When drawing right aligned text, rounding errors in the position returned by GetDrawPosition() cause the right margin of the text to change whenever text width changes causing "jumping letters" effect. So here we calculate the drawing position relative to the right margin on our own to avoid the rounding errors. That is basically a hack, and it should go away if one day we managed to get rid of those rounding errors. Continue using GetDrawPosition() for non-right aligned text, to minimize any unforeseen side effects. Change-Id: Ia095a17a41f723f5fb7afc99df4250262e9a0051
2013-06-21Attempt to fix Core Text full justificationKhaled Hosny
Apparently we need to subtract the trailing white space from the desired line length or text will sometimes protrude to the margin. Change-Id: Iee5ef40670c2fefc189afa319387b180c4ed648d
2013-06-19Call CheckContext() on OS X, tooTor Lillqvist
Change-Id: I093586b0c979e492ea2a09dca9525b808de3ce70
2013-06-19Add commentTor Lillqvist
Change-Id: Id3ec71e8da07a8bf1c979585eb84cd5a9d6f7a77
2013-06-19fdo#63616: Fix GetBoundRect for rotated text in CoreText backendTor Lillqvist
Change-Id: I8c9ee84afd71481c2c6b002265b86e048f369f5c
2013-06-18Fix CTLayout::GetBoundRect()Khaled Hosny
was broken in 35b0a4cd274c1567cf0b8067eb01f17b82ee9f35 Change-Id: I803b510fc875ff9e48ed762114f6d63dad51ad7a
2013-06-18Remove another pointless TODO noteKhaled Hosny
Change-Id: Ib4cb8643f25c8516a91a5d805a5834687d42724e
2013-06-18Remove pointless TODO noteKhaled Hosny
kCTFontDisplayNameAttribute is something like Foo Regular and Foo Bold, we certainly don’t want that. Change-Id: Ia24a2abfcbb28883b2c3d05f66070583ddb862c9
2013-06-18Some notesKhaled Hosny
Change-Id: I665826017f03b123a8b80d6cf31e37d18e169d10
2013-06-18Remove the never set mfFontScaleKhaled Hosny
Lets just assume Core Text does not need this and react if a real problem with “huge” font sizes arise. Change-Id: I4031e7ca34692eb041ab10154df0064ab5efb462
2013-06-18Use Core Text defaults for kerning and ligaturesKhaled Hosny
Our ATSUI port did not disable kerning, so we shouldn’t disable it with Core Text, and ligature are enabled by default anyway. Change-Id: If3ee5fd14376c7d297c288ba6761a45ce2901a1e
2013-06-16Fix PDF export with fallback fonts in Core TextKhaled Hosny
We need to pass the real font used to layout the glyphs in case it differs from the requested font, otherwise we end with garbage in PDF files. Change-Id: I9caa8e60429e45ee864f5347fd9392f5e440864e Reviewed-on: https://gerrit.libreoffice.org/4299 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2013-06-16Get rid of SalLayout::GetFallbackFontData()Khaled Hosny
This is only used in conjunction with SalLayout::GetNextGlyphs() in vcl/source/gdi/pdfwriter_impl.cxx to retrieve the fallback font, if any, used to layout the given glyph, but it is a very convoluted way to do a straight forward thing, and hard to adapt for new SalLayout implementations. So now I just pass a fallback fonts array, when requested, in GetNextGlyphs() itself. Change-Id: I24e7931f64867a4fb4e7b728c65faa6198e24aba Reviewed-on: https://gerrit.libreoffice.org/4285 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2013-06-16kCTFontTableOptionExcludeSynthetic is deprecated in 10.8Tor Lillqvist
Change-Id: Ic5fc06e38db6f2111d516c53b6d1be2e47a7ced7
2013-06-05CGColorCreateGenericRGB is not available on iOSTor Lillqvist
Change-Id: Id7c6077ea0e45d848be099d48ef4d7207e65a06f
2013-06-05Initialise more fields, especially mfFakeDPIScaleTor Lillqvist
Now the iOS app displays the test document successfully again. Change-Id: I71aeacc50e51a28ba1e8b67c7da42da0c848f997
2013-06-04Avoid crash on iOS: We need to get a valid context hereTor Lillqvist
Change-Id: Ib3fc01213fc6bc370a6c8b774a063f6f275ba6f2
2013-06-04Make the iOS vcl CoreText code build againTor Lillqvist
Some refactoring was needed after the Coretext rework yesterday. It does crash at run-time, though. Also, remove the no longer used source files from our older CoreText attempt. Change-Id: I54d221ade846866d7a9457acd50219c74c68e8cf
2013-06-04Drop the trailing white space crackKhaled Hosny
Whatever this is, all it seems to do it to cause jitter when editing text. The only place where this has any use is when editing RTL text since Core Text seems to always place the trailing space on the right. Change-Id: I35726775fb2a11761d264238fe702e58bbafd7fd
2013-06-04Add Emacs and vim mode linesTor Lillqvist
Change-Id: I2ad35bfbaf40dd1a5b5c9f7f119268b8f30ca093
2013-06-04Drop "CJK extra leading" crackKhaled Hosny
It have been unused on Mac OS X since since 2008 (commit da4d070d9d2d563f6e1401496957b22b51c81ff9). Change-Id: I4b3eabe71a54021903009310a87319c9caecfd4c
2013-06-03Use Core Text font manager instead of deprecated ATSKhaled Hosny
Change-Id: I660a895a227da3d28a0b410c56f2395961a5bc4f
2013-06-03Drop ENABLE_CORETEXTKhaled Hosny
This file is Core Text only already. Change-Id: Ic4c1f44296eaae582091e515d3ca1b4aa227301e
2013-06-03Fix dbgutil buildTor Lillqvist
Change-Id: Ife8ca88c8f558955ee006be6294bd7b233e89916
2013-06-03Clarify headers.Michael Meeks
Change-Id: I125e4cacd94cd33d24cf1266967eb92906600cc4
2013-06-03Drop Core Text dynamic loading stuffKhaled Hosny
Our Mac OS X baseline includes Core Text. Change-Id: Icd2f0062d172db1d4393b2dd1eac4d9f55a88495
2013-06-03Get the new Core Text code to compileKhaled Hosny
Change-Id: I592158bd60afcbe756c6f0e11aa69a44768a0985
2013-06-03Cherry-pick Core Text port from AOOKhaled Hosny
Manually picked from: http://svn.apache.org/viewvc?view=revision&sortby=log&revision=1480384 Author: hdu Date: Wed May 8 18:14:34 2013 UTC (3 weeks, 2 days ago) Changed paths: 55 Log Message: #i122195# add VCL support for 64bit OSX>=10.7 Change-Id: Ia799d7fdeb257e9bfd311338dcfdf97caf9d191f
2013-05-22Revert "fdo#62846 incorrect glyph to Unicode mappings in PDFs"Tor Lillqvist
Breaks the build for Windows: vcl/win/source/gdi/winlayout.cxx(1897) : error C2065: 'nCharPos' : undeclared identifier This reverts commit 0b70e4ea4fcf0adccdfdf4886e5cc45d46479692.
2013-05-22fdo#62846 incorrect glyph to Unicode mappings in PDFsJonathan Schultz
Change-Id: Idebc7f69f95d8f72626373475d8611ea68f1483a
2013-05-18Drop unused mpGlyphPositions arrayKhaled Hosny
Change-Id: I858832a41ef140fa9916e05548edf2df6b0af451