mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
Font_FontMgr has been redesigned to: - Store fonts in a map instead a list. - Allow mapping multiple fonts to a single alias. - Log informative message about usage of non-requested font (fallback). - Register all font files within standard folders on Linux when "fonts.dir" is not found. - Prefer specific alias ("serif") as default fallback font instead of arbitrary one in a system. A couple of obsolete and broken font aliases have been removed; instead, new aliases of fonts popular on Linux platform have been added. Font_NameOfFont.hxx has been extended with more neutral aliases "monospace", "serif", "sans-serif", "cjk" and "korean". Font_FontAspect enumeration values have been renamed Font_FA_ -> Font_FontAspect_ with old values preserved as alias. Font_SystemFont has been extended with a list of paths to Font_FontAspect styles, so that entire Font Family is now defined within a single Font_SystemFont instance. Non-resizable fonts are now ignored by Font Manager.
27 lines
559 B
Plaintext
27 lines
559 B
Plaintext
puts "============"
|
|
puts "0023745: Draw Harness, ViewerText - vdrawtext command should not modify global text aspect"
|
|
puts "============"
|
|
puts ""
|
|
|
|
pload QAcommands
|
|
pload VISUALIZATION
|
|
|
|
vfont add [locate_data_file DejaVuSans.ttf] SansFont
|
|
|
|
vclear
|
|
vinit View1
|
|
vaxo
|
|
vdrawtext text0 "ANOTHERBUG" -pos 100 100 100 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 1 -height 50 -font SansFont
|
|
vtrihedron trihedron
|
|
|
|
set x 239
|
|
set y 216
|
|
set R 1
|
|
set G 1
|
|
set B 0
|
|
checkcolor ${x} ${y} ${R} ${G} ${B}
|
|
|
|
vdump ${imagedir}/${casename}.png
|
|
|
|
puts "TEST COMPLETED"
|