forked from kimminsung/dwg-dxf-viewer-sample
feat: enhance complex linetype rendering with DWG text style data, gap midpoint centering, and theme defaults
This commit is contained in:
1 parent
1a664f677a
commit
3d3e052f3e
20 files changed
+55456
-16
No files matched your search
@@ -328,7 +328,7 @@ export class SlugTextBatch {
|
||||
colorInt: number, alignH: number, alignV: number): void {
|
||||
const eng = this.engine;
|
||||
const lines = String(text).split('\n');
|
||||
const scale = height / eng.capHeightEm;
|
||||
const scale = height;
|
||||
const lineStep = height * 5 / 3; // CAD default MTEXT line spacing
|
||||
const blockH = (lines.length - 1) * lineStep + height;
|
||||
|
||||
|
||||
Reference in new issue
Block a user