Refactor font handling; add image-compression estimation debug option

This commit is contained in:
James Babcock committed 2026-06-01 11:36:46 -07:00
1 parent 5a92637537
commit 964cd11785
15 files changed
+389 -130

No files matched your search

+1 -3
View File
@@ -26,7 +26,6 @@ export type PaintBelow = () => GrayImage;
export interface LayerContext {
readonly stack: LayerStack;
readonly font: BdfFont;
readonly actions: LayerActions;
}
@@ -40,11 +39,10 @@ export class LayerStack {
private readonly layers: Layer[];
private readonly ctx: LayerContext;
constructor(baseLayer: Layer, font: BdfFont, actions: LayerActions) {
constructor(baseLayer: Layer, actions: LayerActions) {
this.layers = [baseLayer];
this.ctx = {
stack: this,
font,
actions,
};
}