Move powerline to unified

This commit is contained in:
Daniel Imms
2025-12-22 12:14:50 -08:00
parent 0af884d379
commit 3e80637145
4 changed files with 62 additions and 62 deletions
@@ -41,6 +41,9 @@ export function tryDrawCustomGlyph(
case CustomGlyphDefinitionType.PATH:
drawPathDefinitionCharacter(ctx, unifiedCharDefinition.data, xOffset, yOffset, deviceCellWidth, deviceCellHeight);
return true;
case CustomGlyphDefinitionType.VECTOR_SHAPE:
drawVectorShape(ctx, unifiedCharDefinition.data, xOffset, yOffset, deviceCellWidth, deviceCellHeight, fontSize, devicePixelRatio);
return true;
}
}
@@ -56,12 +59,6 @@ export function tryDrawCustomGlyph(
return true;
}
const powerlineDefinition = powerlineDefinitions[c];
if (powerlineDefinition) {
drawPowerlineChar(ctx, powerlineDefinition, xOffset, yOffset, deviceCellWidth, deviceCellHeight, fontSize, devicePixelRatio);
return true;
}
return false;
}
@@ -294,7 +291,7 @@ function drawBoxDrawingChar(
}
}
function drawPowerlineChar(
function drawVectorShape(
ctx: CanvasRenderingContext2D,
charDefinition: ICustomGlyphVectorShape,
xOffset: number,