It is working nicely both for -font-weight normal/bold. Seems that the real font name gets auto-loaded.
But sure we can change it. -- Mensaje telepatico asistido por maquinas. On 12/15/2017 12:43 PM, Dan Wilcox wrote: Note: I would stay name the font family "DejaVu Sans Mono" as the font detection mechanism and the postscript export expect that naming. On Dec 15, 2017, at 4:34 PM, Lucas Cordiviola <[email protected]<mailto:[email protected]>> wrote: Ok good. Also I have another option (tested and working) with a brand new tcl pckg designed just for this need: “extrafont” https://wiki.tcl.tk/48903 Is cross-platform but the win32 pkg is just 20KB. This is added on pd-gui.tcl (line 364): ++++++++++++++++++++++++++++++++++++++++++++++++++ "win32" { # Adding dejavu fonts on mswindows catch { package require extrafont extrafont::load pd/lib/font/DejaVuSansMono-Bold.ttf extrafont::isAvailable "DejaVu" ;# true set myfontname "tk_dejavu" ;# ... choose the name you want .. set myfontname [font create -family "dejavu" -size 12] label .mylabel1 -font $myfontname # extrafont::load pd/lib/font/DejaVuSansMono.ttf extrafont::isAvailable "DejaVu" ;# true set myfontname "tk_dejavu" ;# ... choose the name you want .. set myfontname [font create -family "dejavu" -size 12] label .mylabel2 -font $myfontname } # ++++++++++++++++++++++++++++++++++++++++++++++++++++ Mensaje telepatico asistido por maquinas. On 12/15/2017 11:41 AM, Dan Wilcox wrote: No. The example in the link *uses* CRITCL but it's really just C code which could be built without using CRITCL. I'm working on an example extension which loads the font. Should have it up relatively soon. On Dec 14, 2017, at 6:23 PM, [email protected]<mailto:[email protected]> wrote: Date: Thu, 14 Dec 2017 17:01:24 +0000 From: Lucas Cordiviola <[email protected]<mailto:[email protected]>> To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [PD] Dejavu on ms-windows was: (Re: [PD-announce] Pd 0.48-1 test version released) Message-ID: <blupr01mb552d5ed48f32b4d2dcde527a6...@blupr01mb552.prod.exchangelabs.com<mailto:blupr01mb552d5ed48f32b4d2dcde527a6...@blupr01mb552.prod.exchangelabs.com>> Content-Type: text/plain; charset="windows-1252" Doesn't this changed the dependency from TWAPI to CRITCL? -------- Dan Wilcox @danomatika<http://twitter.com/danomatika> danomatika.com<http://danomatika.com/> robotcowboy.com<http://robotcowboy.com/> -------- Dan Wilcox @danomatika<http://twitter.com/danomatika> danomatika.com<http://danomatika.com> robotcowboy.com<http://robotcowboy.com>
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
