由於某些原因,當我顯示單詞「蝴蝶」(或其他任何帶有「fl」)時,「f」和「l」連接在頂部(請參閱圖像如下)。字體是世紀哥特粗體。這是我用來設置UILabel的代碼。標籤的字符串從plist中檢索:相鄰的「f」和「l」字符
UILabel *label = [[UILabel alloc] init];
label.text = [self.flashcardDelegate.alphabetArr objectAtIndex:index];
label.textColor = [UIColor colorWithRed:.733 green:0 blue:.03137 alpha:1];
label.backgroundColor = [UIColor clearColor];
label.frame = CGRectMake(ipad ? 210.0f : 65.0f,
ipad ? 650.0f : 300.0f,
ipad ? 340.0f : 185.0f,
ipad ? 250.0f : 135.0f);
label.font = [UIFont fontWithName:@"CenturyGothic-Bold" size:ipad ? 200 : 100];
label.textAlignment = UITextAlignmentCenter;
任何想法爲什麼會發生這種情況?謝謝。
我的問題是一樣的,「f」和「i」與iOS NSString上的字體「Late-Bold」合併。我沒有使用任何CoreText或NSAttributedString。任何幫助? – NaXir 2014-04-19 11:18:20