1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 14:52:19 +03:00

GH-666 Rename

This commit is contained in:
Tae Won Ha 2018-08-27 19:38:50 +02:00
parent 9f115681be
commit 79350c385f
3 changed files with 11 additions and 11 deletions

View File

@ -56,7 +56,7 @@ class RunDrawer {
)
.forEach { $0.draw(in: context) }
} else {
self.typesetter.runsWithoutLigatures(
self.typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: run.cells.map { $0.string },
startColumn: run.cells.startIndex,
yPosition: run.location.y + self.baselineOffset,

View File

@ -192,7 +192,7 @@ class Typesetter {
return fontGlyphRuns
}
func runsWithoutLigatures(
func fontGlyphRunsWithoutLigatures(
nvimCells: [String],
startColumn: Int,
yPosition: CGFloat,

View File

@ -12,7 +12,7 @@ import Nimble
class TypesetterWithoutLigaturesTest: XCTestCase {
func testSimpleAsciiChars() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: emojiMarked(["a", "b", "c"]),
startColumn: 10,
yPosition: yPosition,
@ -33,7 +33,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testAccentedChars() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: emojiMarked(["ü", "î", "ñ"]),
startColumn: 20,
yPosition: yPosition,
@ -54,7 +54,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testCombiningChars() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: emojiMarked(
["a", "a\u{1DC1}", "a\u{032A}", "a\u{034B}", "b", "c"]
),
@ -116,7 +116,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testSimpleEmojis() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: asciiMarked(["a", "b", "\u{1F600}", "", "\u{1F377}", ""]),
startColumn: 1,
yPosition: yPosition,
@ -150,7 +150,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testEmojisWithFitzpatrickModifier() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: asciiMarked(["a", "\u{1F476}", "", "\u{1F3FD}", ""]),
startColumn: 1,
yPosition: yPosition,
@ -182,7 +182,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testHangul() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: asciiMarked(["a", "b", "", "", "", "", "", ""]),
startColumn: 1,
yPosition: yPosition,
@ -216,7 +216,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testHanja() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: asciiMarked(["a", "b", "", "", "", "", "", ""]),
startColumn: 1,
yPosition: yPosition,
@ -250,7 +250,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testOthers() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: emojiMarked(["a", "\u{10437}", "\u{1F14}"]),
startColumn: 1,
yPosition: yPosition,
@ -290,7 +290,7 @@ class TypesetterWithoutLigaturesTest: XCTestCase {
}
func testSimpleLigatureChars() {
let runs = typesetter.runsWithoutLigatures(
let runs = typesetter.fontGlyphRunsWithoutLigatures(
nvimCells: emojiMarked(["a", "-", "-", ">", "a"]),
startColumn: 1,
yPosition: yPosition,