MCPcopy
hub / github.com/midrender/revideo / applyText

Method applyText

packages/2d/src/lib/components/Code.ts:513–520  ·  view source on GitHub ↗
(context: CanvasRenderingContext2D)

Source from the content-addressed store, hash-verified

511 }
512
513 protected override applyText(context: CanvasRenderingContext2D) {
514 super.applyText(context);
515 context.font = this.styles.font;
516 context.textBaseline = 'top';
517 if ('letterSpacing' in context) {
518 context.letterSpacing = this.styles.letterSpacing;
519 }
520 }
521
522 protected override collectAsyncResources(): void {
523 super.collectAsyncResources();

Callers 4

drawingInfoMethod · 0.95
desiredSizeMethod · 0.95
drawMethod · 0.95
drawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected