mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:30:53 +00:00
Glyph handling improvments.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12570 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3b0b8a7f1a
commit
415e49b24b
3 changed files with 583 additions and 272 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-02-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSLayoutManager.m: Lots of changes to glyph code, including
|
||||
new logging function ... still doesn't work though ... so turned off.
|
||||
|
||||
2002-02-19 Pierre-Yves Rivaille <pyrivail@ens-lyon.fr>
|
||||
|
||||
* Source/NSTableView.m ([-setAutosaveTableColumns:]):
|
||||
|
|
|
@ -425,22 +425,6 @@ static NSCharacterSet *invSelectionWordGranularitySet;
|
|||
return NSMakeRange(0, [_textStorage length]);
|
||||
}
|
||||
|
||||
- (NSTextContainer*) textContainerForGlyphAtIndex: (unsigned)glyphIndex
|
||||
effectiveRange: (NSRange*)effectiveRange
|
||||
{
|
||||
if (effectiveRange)
|
||||
*effectiveRange = NSMakeRange(0, [_textStorage length]);
|
||||
|
||||
if ([_textContainers count] == 0)
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
else
|
||||
{
|
||||
return [_textContainers objectAtIndex: 0];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) setTextContainer: (NSTextContainer*)aTextContainer
|
||||
forGlyphRange: (NSRange)glyphRange
|
||||
{
|
||||
|
@ -787,6 +771,7 @@ forStartOfGlyphRange: (NSRange)glyphRange
|
|||
|
||||
currReloc = [ghostArray objectAtIndex: 0];
|
||||
firstChar = currReloc->glyphRange.location;
|
||||
NSLog(@"Reloc %@", NSStringFromRange(currReloc->glyphRange));
|
||||
if (firstChar == nextChar)
|
||||
break;
|
||||
else if (firstChar > nextChar)
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue