Re: [Factor-talk] Font
Hello! 25.07.2016, 16:47, "John Benediktsson" :You can reset the memoized so then next time it gets called it will memoize again: IN: scratchpad \ windows-fonts reset-memoized Hold on a second! Looking at the `startup-hooks`, I see one hook named "windows.fonts", and it does this:`[ \ (cache-font) reset-memoized ]` Shouldn't we add `\ windows-fonts reset-memoized` to the same existing hook? You could probably put that in a .factor-rc if you need it run on startup. No, I probably found a bug! : ) Let's fix the hook instead!https://github.com/factor/factor/pull/1678 Why do you need those icon images cached in the Factor image? I think it's a bit awkward to have everything in the image, except for the images. Get it? Images? Never mind. ---=---Александр -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Font
You can reset the memoized so then next time it gets called it will memoize again: IN: scratchpad \ windows-fonts reset-memoized You could probably put that in a .factor-rc if you need it run on startup. Why do you need those icon images cached in the Factor image? On Mon, Jul 25, 2016 at 1:43 AM, Alexander Ilin wrote: > Hello, John! > > Thank you for the reply! Now I know exactly what the problem is. > > I've `save`d an image on Win7, and running it on WinXP. Naturally, I > have the wrong set of fonts MEMO-ized there. > > What would be the best way to deal with this? Is it possible to create > an image that's runnable on all supported Windows platforms? My goal is to > have the minimal number of files in the distro. > > A related question: is it possible to somehow cache all the images from > basis/definitions/icons and > basis/ui/tools/error-list/icons and > basis/ui/theme/images > into the image-file? Is there a setting for that? > > 25.07.2016, 05:06, "John Benediktsson" : > > The Listener uses "monospace", which is bound to either Consolas > or Courier New, depending on the Windows version: > > > https://github.com/factor/factor/blob/master/basis/windows/fonts/fonts.factor#L6 > > It might be that one of those is not available on your thumb drive setup > and it uses some fallback font? > > You can change the listener font and font-size with ``set-listener-font`` > in ``ui.tools.listener``, for example: > > IN: scratchpad "Times New Roman" 16 set-listener-font > > On Sun, Jul 24, 2016 at 4:24 PM, Alexander Ilin wrote: > > Hello! > > What kind of font does the Listener use, and how do I configure it? > > For me it's some kind of a nice fixed-width font. But when I copy the > Factor on a thumb drive with a minimal set of files (factor.image, some > DLLs, some tiffs in subfolders) the Listener's font is something weird, and > not fixed-width. I wonder if I miss some file on my thumbdrive > installation, or is that due to some setting in Windows on the target > machine. > > > ---=--- > Александр > > > > -- > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning > reports.http://sdm.link/zohodev2dev > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] nano_count()
Yes. :) 2016-07-24 23:48 GMT+02:00 Alexander Ilin : > Hello! > > In vm/gc.cpp: > > gc_event::gc_event(gc_op op, factor_vm* parent) > : op(op), > cards_scanned(0), > decks_scanned(0), > code_blocks_scanned(0), > start_time(nano_count()), > card_scan_time(0), > code_scan_time(0), > data_sweep_time(0), > code_sweep_time(0), > compaction_time(0) { > data_heap_before = parent->data_room(); > code_heap_before = parent->code->allocator->as_allocator_room(); > start_time = nano_count(); > } > > Isn't it redundant to initialize the start_time twice? > > ---=--- > Александр > > -- > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk -- mvh/best regards Björn Lindqvist -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Font
Hello, John! Thank you for the reply! Now I know exactly what the problem is. I've `save`d an image on Win7, and running it on WinXP. Naturally, I have the wrong set of fonts MEMO-ized there. What would be the best way to deal with this? Is it possible to create an image that's runnable on all supported Windows platforms? My goal is to have the minimal number of files in the distro. A related question: is it possible to somehow cache all the images from basis/definitions/icons and basis/ui/tools/error-list/icons and basis/ui/theme/images into the image-file? Is there a setting for that? 25.07.2016, 05:06, "John Benediktsson" :The Listener uses "monospace", which is bound to either Consolas or Courier New, depending on the Windows version: https://github.com/factor/factor/blob/master/basis/windows/fonts/fonts.factor#L6 It might be that one of those is not available on your thumb drive setup and it uses some fallback font? You can change the listener font and font-size with ``set-listener-font`` in ``ui.tools.listener``, for example: IN: scratchpad "Times New Roman" 16 set-listener-fontOn Sun, Jul 24, 2016 at 4:24 PM, Alexander Ilinwrote:Hello! What kind of font does the Listener use, and how do I configure it? For me it's some kind of a nice fixed-width font. But when I copy the Factor on a thumb drive with a minimal set of files (factor.image, some DLLs, some tiffs in subfolders) the Listener's font is something weird, and not fixed-width. I wonder if I miss some file on my thumbdrive installation, or is that due to some setting in Windows on the target machine. ---=---Александр -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk