Add letterSpacing option

This provides an option for fonts to be more spaced out. This is particularly useful
for fonts that can seem crammed due to not allowing floating point numbers when
drawing, such as Monoid or Operator Mono.
This commit is contained in:
Daniel Imms
2017-10-09 20:07:30 -07:00
parent b06eb44c45
commit 1b2bac7aef
6 changed files with 81 additions and 43 deletions
+4 -2
View File
@@ -86,8 +86,10 @@ export interface IColorSet {
export interface IRenderDimensions {
scaledCharWidth: number;
scaledCharHeight: number;
scaledLineHeight: number;
scaledLineDrawY: number;
scaledCellWidth: number;
scaledCellHeight: number;
scaledCharLeft: number;
scaledCharTop: number;
scaledCanvasWidth: number;
scaledCanvasHeight: number;
canvasWidth: number;