set_display_font

算子:set_display_font( : : WindowHandle, Size, Font, Bold, Slant : )

功能:用来设置当前窗口的字体属性。

输入参数:WindowHandle:将要设置字体的窗口的窗口句柄                                                                                                             

SizeWindows系统上的字体大小。 如果Size = -1,则使用默认值16。 在Linux系统上,所有值都乘以1.25,然后映射到[11、14、17、20、25、34]。建议值: [9, 11, 14, 16, 20, 27]。                                                                 

Font字体名称。 可以使用'mono','sans','serif'或特定的字体名称。 在Windows上,“mono”将被映射到“Courier New字体”,在Linux上将被映射到“courier字体”,在OS X上将被映射到“Menlo字体”。在Windows和OS X上,“sans”将被映射到“Arial字体”,以及“helvetica字体”在Linux上。 在Windows和OS X上,“serif”将映射到“Times New Roman字体”,并映射到“times字体”在Linux上。默认值“mono”                                                              

Bold:如果设置为“true”,则使用粗体。默认值为“true”。

Slant:如果设置为“ true”,则使用倾斜字体。默认值为“true”。

输出参数: WindowHandle:新图形窗口的窗口句柄。

例程: 

dev_open_window_fit_image(Image,0 , 0, 400, 400, WindowHandle)

//设置窗口的字体,16号字,Courier New字体,粗体

set_display_font(WindowHandle, 16, 'mono', 'true', 'false')

  • 3
    点赞
  • 17
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
What is PJA Toolkit ? PJA (Pure Java AWT) Toolkit is a JavaTM library for drawing graphics developed by eTeks. It is 100% Pure Java and doesn't use any native graphics resource of the system on which the Java Virtual Machine runs. java.awt.Graphics methods such as drawLine (), fillOval (), drawString (),... are implemented in the default JVM with native graphical functions (except in some cases for Java2D) : That means that drawLine () finally calls a GDI system function on Windows or X11 function on a X11/UNIX machine even if the drawing is done in an off-screen image using the class java.awt.Image. This ensures the best performance for drawing graphics with Java. But in a few cases, this default behavior can cause problems that PJA Toolkit library improves : When no X11 Display is available on a UNIX machine (also called headless environment) or when GDI resources are low on Windows, it is impossible to compute off-screen images with java.awt.Graphics methods under a JDK version < 1.4, even if your program doesn't need to display these images. Typically, this situation happens for servlets returning dynamically generated images like pies, charts or web counters. With PJA Toolkit, you don't need to change your Java programs that you expected to run : setting java.awt system property to com.eteks.awt.PJAToolkit is the only required modification to your program with Java 1.1 (see the FAQ and com.eteks.awt.PJAToolkit class documentation for more information). It is also impossible to compute off-screen images when the Java security manager forbids access to any Toolkit or the AWT library. In that case you can although create an instance of com.eteks.awt.PJAImage class which extends java.awt.Image, and draw into it with graphics methods. Drawing with native function doesn't give always the exact same results for each pixel on all platforms. For example, SansSerif font renders differently on MacOS, Windows and other systems : each letter of this font isn't drawn the same, and is different if font anti-aliasing is set or not on the system. On MacOS, circles aren't rendered as specified in Java documentation : fillArc () and drawArc () don't use the same base ellipse... Finally, PJA Toolkit library is supplied under GNU General Public License with its Java source files, and is a good exemple for studying : How pixels are drawn by graphics functions on a computer (com.eteks.awt.PJAGraphics uses Bresenham algorithms to draw lines and circles). How to use the Java paradigm for managing images specified by the ImageConsumer/ImageProducer/ImageObserver interfaces. How Java Toolkit works and what it needs to work (which abstract classes and interfaces to implement). Sources are supplied to allow developers to improve and optimize the graphic drawing methods. com.eteks.awt package files are Java 1.0 to Java 1.4.2 compliant. PJA Toolkit library core classes weighs 140 Ko at run-time (can be reduced to 73 Ko if compressed).
ModernGadgets is a set of sleek, minimalist, information-dense gadgets that are designed to fit right into your modern desktop. It is the result of my tinkering with Rainmeter for the last three years, and is heavily based on SilverAzide's Gadget Replicas. The overarching goal of this suite is ease-of-use. Thus, everything has been made as simple and streamlined as possible. ModernGadgets requires HWiNFO, a free system monitoring utility, for full functionality. Alternatively, some information in CPU Meter may be retrieved through the CoreTemp or SpeedFan applications. Want even more gadgets? Check out the Gadgets Additions suite! Click here to learn how to mod the gadgets to match your desktop background colors automatically! REQUIRES RAINMETER 4.3 OR NEWER REQUIRES .NET FRAMEWORK 4.5 OR NEWER REQUIRES WINDOWS 7 SP1 OR NEWER Download latest version (v1.6.3) Older versions ModernGadgets on GitHub Installation and Setup: Download the skin suite's .rmskin file and open it. Follow the standard Rainmeter skin installation process. If it is your first time using ModernGadgets, it is recommended to load the current layout in order to be presented with a Welcome skin, which will contain many useful links. Please keep in mind that for many features, you need to install and configure HWiNFO. Click here to view the HWiNFO setup tutorial (also available as a link from the welcome screen). Credits: Designed and programmed by Caleb Heuer (raiguard). Backend code based on "Gadgets" by SilverAzide. "IBM Plex Sans" font from Google Fonts, under the Apache 2.0 License "Font Awesome" icons from FortAwesome, under the Font Awesome Free license. Weather information is powered by Dark Sky. Special Thanks: SilverAzide - ActiveNet plugin, NetMonitor utility, fixed precision format script stangowner - HWiNFO Plugin, HWiNFO Shared Memory Viewer jsmorley - RainRGB, Rainmeter balala - Help with fixing Disks Meter's dynamic height adjustment smurfier - ReadINI function Gadget Features: Audio Meter - Volume and sound device controls - NowPlaying media controls (supports both local and web media players) - Adjustable visualizer - Able to be scaled to any size Battery Meter - Displays current battery charge status and metrics - Plays a warning sound when your battery gets critically low - Able to be scaled to any size Calendar - ModernGadgets-styled implementation of LuaCalendar - Displays current month and day - Past or future months can be navigated through - Supports iCal event files - Able to be scaled to any size Chronometer - Displays current date and time - Shows system uptime and logon time - Supports up to two alarms - Displays a custom event countdown - Includes stopwatch and timer applets - Able to be scaled to any size Clipboard Meter - Displays current and past ten entries in the Windows clipboard - Previous entries can be brought to the front and used again - Entries can be deleted - Able to be scaled to any size CPU Meter - Per-thread CPU usage, per-core CPU temperature** and voltage* - Supports up to 64 CPU threads - Shows CPU name, RAM and Page File information - Shows CPU clock speed, CPU fan speed** - Shows top process by CPU usage - Thermal throttling detection and alarm* - Line graph displays CPU temperature**, per-thread CPU usage, RAM usage, and Page file usage - Optional average CPU usage graph display - Opens task manager on double-click - Able to be scaled to any size Disks Meter - Supports all disk drive slots (A-Z) - Automatically adjusts when disks are connected/disconnected - Displays disk name, read/write time usage, current read/write rates, and storage information for each disk - Line graph displays read/write rates and read/write time usage for each disk - Clicking a disk name will open File Explorer on the selected disk - Includes eject buttons for ejecting removable disks*** - Able to be scaled to any size GPU Meter* - GPU name, general usage, and temperature - Fan speed information - VRAM usage and memory clock speed - Memory controller usage - Video clock speed - Core Voltage - Line graph displays general GPU usage, VRAM usage, fan speed, and memory controller usage - Includes four GPU meters to monitor up to 4 discrete GPUs for multi-GPU setups - Able to be scaled to any size Network Meter - Local and global IP addresses - View your location based on your IP address - Shows Network Ping to a specified URL - Displays Current upload/download rates in both bits/sec and bytes/sec - Displays Session and total data uploaded/downloaded - Displays peak network traffic speed - Line graph shows current upload/download rates - Shows link to speedtest.net for testing your network speed - Includes alternate “pro” mode with more accurate tracking (requires installation of third-party software) - Able to be scaled to any size Process Meter - Displays ten processes, ordered by either CPU usage or GPU usage - Displays process RAM/VRAM usage - Allows process filtering, defaulting to all system-re

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值