【发布时间】:2021-12-30 09:59:16
【问题描述】:
GX Evo2 - .NET 应用程序:
我正在尝试打印一个包含 6 种不同字体的 pdf 报告,它还具有 HTML 操作。
一些变量的字体没有显示,大小的变化也不适用。
我无法让 Bahnschrift 显示 Condensed 或 SemiCondensed
我在 PDFReport.ini 下方留下了一些可能“有问题”的变量示例;尽管它不仅仅发生在 &Vars 上,其中包含 HTML:
1.
Embeed Fonts= true
RunDirection= 2
OutputFileDirectory= .
LeftMargin= 0.1
SearchNewFonts= false
BottomMargin= 0.1
LongDotDashedStyle= 6;2;1;2
DEBUG= false
Version= 1.0.0.0
Barcode128AsImage= false
DottedStyle= 1;2
SearchNewFontsOnce= true
ServerPrinting= false
AdjustToPaper= true
DashedStyle= 4;2
TopMargin= 0.8
Leading= 2
LongDashedStyle= 6;2
LineCapProjectingSquare= true
FontsLocation= C:\WINDOWS\Fonts
Fonts Location (MS)= C:\WINDOWS\Fonts
[Fonts Location (MS)]
Arial Narrow= C:\WINDOWS\Fonts\ARIALN.TTF
Tahoma= C:\WINDOWS\Fonts\TAHOMA.TTF
3 of 9 Barcode= C:\WINDOWS\Fonts\3OF9.TTF
BarCode 128= C:\WINDOWS\Fonts\barcode128.TTF
Bahnschrift SemiCondensed= C:\Windows\Fonts\Bahnschrift.ttf
Bahnschrift Condensed= C:\Windows\Fonts\bahnschrift.ttf
Bahnschrift= C:\Windows\Fonts\Bahnschrift.ttf
Calibri Light= C:\Windows\Fonts\calibril.ttf
Arial Black= C:\Windows\Fonts\ariblk.ttf
[Embeed Fonts]
3 of 9 Barcode= true
BarCode 128= true```
2.
```&FormattedVar = = '<div style="font-family: "Calibri Light", Calibri; text-align:center;" >' + &VarPart1+ '<b>' + &VarPart2+ '</b>' + &VarPart3+ '</div>'```
【问题讨论】:
标签: html fonts pdf-generation font-size genexus