MCPcopy Create free account
hub / github.com/codeaashu/claude-code / _getFont

Method _getFont

src/server/web/public/terminal.js:7254–7256  ·  view source on GitHub ↗
(e3, t3, i3)

Source from the content-addressed store, hash-verified

7252 this._ctx.font = this._getFont(e3, false, false), this._ctx.textBaseline = r.TEXT_BASELINE, this._clipCell(i3, s3, t3.getWidth()), this._ctx.fillText(t3.getChars(), i3 * this._deviceCellWidth + this._deviceCharLeft, s3 * this._deviceCellHeight + this._deviceCharTop + this._deviceCharHeight);
7253 }
7254 _clipCell(e3, t3, i3) {
7255 this._ctx.beginPath(), this._ctx.rect(e3 * this._deviceCellWidth, t3 * this._deviceCellHeight, i3 * this._deviceCellWidth, this._deviceCellHeight), this._ctx.clip();
7256 }
7257 _getFont(e3, t3, i3) {
7258 return `${i3 ? "italic" : ""} ${t3 ? e3.options.fontWeightBold : e3.options.fontWeight} ${e3.options.fontSize * this._coreBrowserService.dpr}px ${e3.options.fontFamily}`;
7259 }

Callers 1

_fillCharTrueColorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected