• Tor Lillqvist's avatar
    More work on the CoreText code · ef7b1133
    Tor Lillqvist yazdı
    It no longer gets stuck in a loop so easily.
    
    The key thing I realized was that there is a fundamental difference to
    how the ATSUI and CoreText APIs handle text buffers and the start
    offsets into them:
    
    ATSUCreateTextLayoutWithTextPtr() takes a pointer to the whole buffer,
    plus start offset and length. These are stored as part of the layout
    object. Other ATSUI calls that use the layout object interpret index
    parameters as relative to the buffer start, not relative to the start
    offset of the layout object.
    
    CTTypesetterCreateWithAttributedString() on the other hand takes an
    attributed string that has been created from a CFString that already
    is based on a potential substring of a buffer. I.e. the CTTypesetter
    has no knowledge of the original buffer. All index parameters are
    relative to that substring of the buffer, as are return values.
    
    Change-Id: I7026f323d90a72e1ae1784a69f521e347baffaea
    ef7b1133
Adı
Son kayıt (commit)
Son güncelleme
..
android Loading commit data...
aqua/source Loading commit data...
coretext Loading commit data...
generic Loading commit data...
headless Loading commit data...
inc Loading commit data...
ios/source Loading commit data...
null Loading commit data...
prj Loading commit data...
qa Loading commit data...
quartz Loading commit data...
source Loading commit data...
test Loading commit data...
uiconfig/ui Loading commit data...
unx Loading commit data...
win/source Loading commit data...
workben Loading commit data...
AllLangResTarget_vcl.mk Loading commit data...
CppunitTest_vcl_filters_test.mk Loading commit data...
CustomTarget_afm_hash.mk Loading commit data...
CustomTarget_kde4_moc.mk Loading commit data...
CustomTarget_kde_moc.mk Loading commit data...
CustomTarget_tde_moc.mk Loading commit data...
Executable_kdefilepicker.mk Loading commit data...
Executable_tdefilepicker.mk Loading commit data...
Executable_ui-previewer.mk Loading commit data...
Library_desktop_detector.mk Loading commit data...
Library_vcl.mk Loading commit data...
Library_vclplug_gen.mk Loading commit data...
Library_vclplug_gtk.mk Loading commit data...
Library_vclplug_gtk3.mk Loading commit data...
Library_vclplug_kde.mk Loading commit data...
Library_vclplug_kde4.mk Loading commit data...
Library_vclplug_svp.mk Loading commit data...
Library_vclplug_tde.mk Loading commit data...
Makefile Loading commit data...
Module_vcl.mk Loading commit data...
Package_inc.mk Loading commit data...
README Loading commit data...
StaticLibrary_headless.mk Loading commit data...
StaticLibrary_vclmain.mk Loading commit data...
UI_vcl.mk Loading commit data...
WinResTarget_vcl.mk Loading commit data...
Zip_osxres.mk Loading commit data...
vcl.android.component Loading commit data...
vcl.headless.component Loading commit data...
vcl.ios.component Loading commit data...
vcl.macosx.component Loading commit data...
vcl.unx.component Loading commit data...
vcl.windows.component Loading commit data...