Rendering Text
Chapter 3. Rendering Text The pixels library can do slightly more than just putPixel: it also offers a minimal drawText proc, to put letters and words on the screen. Its declaration looks like this: drawText(x, y: int; text: string; size: int; color: Color) We pass the following parameters to it: x and y The coordinates of a bottom-left corner of the text we want to draw text The text we want to render for example "like this". size This is a height of the text in pixels. color Similarly to the putPixel proc, we can define the color of the text we’re drawing. The simplest way to call this proc is0 码力 | 6 页 | 74.05 KB | 1 年前3CakePHP Cookbook Documentation 5.x
Fixing the Add & Edit Actions Wrapping Up Contributing Documentation Translations Documentation Formatting Guide Tickets Reporting Bugs Reporting Security Issues Code Initial Setup Working on a Patch Number Number Formatting Currency Values Number::currency() Setting the Default Currency Number::setDefaultCurrency() Getting the Default Currency Number::getDefaultCurrency() Formatting Floating Point Point Numbers Number::precision() Formatting Percentages Number::toPercentage() Interacting with Human Readable Values Number::toReadableSize() Formatting Numbers Number::format() Number::ordinal()0 码力 | 1080 页 | 939.39 KB | 1 年前3CakePHP Cookbook 4.x
Fixing the Add & Edit Actions Wrapping Up Contributing Documentation Translations Documentation Formatting Guide Tickets Reporting Bugs Reporting Security Issues Code Initial Setup Working on a Patch Number Number Formatting Currency Values Number::currency() Setting the Default Currency Number::setDefaultCurrency() Getting the Default Currency Number::getDefaultCurrency() Formatting Floating Point Point Numbers Number::precision() Formatting Percentages Number::toPercentage() Interacting with Human Readable Values Number::toReadableSize() Formatting Numbers Number::format() Number::ordinal()0 码力 | 1249 页 | 1.04 MB | 1 年前3CakePHP Cookbook 3.x
Authentication Adding Password Hashing Contributing Documentation Translations Documentation Formatting Guide Tickets Reporting Bugs Reporting Security Issues Code Initial Setup Working on a Patch Inflections Number Formatting Currency Values Setting the Default Currency Formatting Floating Point Numbers Formatting Percentages Interacting with Human Readable Values Formatting Numbers Format Differences Callbacks Text Convert Strings into ASCII Creating URL Safe Strings Generating UUIDs Simple String Parsing Formatting Strings Wrapping Text Highlighting Substrings Removing Links Truncating Text Truncating0 码力 | 1244 页 | 1.05 MB | 1 年前3CakePHP Cookbook Documentation 5.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780 36 Number 781 Formatting Currency Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Formatting Floating Point Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Formatting Percentages . . . . . . . . . . . . . Human Readable Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784 Formatting Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 900 36 Number 901 Formatting Currency Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 902 Formatting Floating Point Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903 Formatting Percentages . . . . . . . . . . . . . Human Readable Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903 Formatting Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.80 MB | 1 年前3CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 892 36 Number 893 Formatting Currency Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895 Formatting Floating Point Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 895 Formatting Percentages . . . . . . . . . . . . . Human Readable Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 896 Formatting Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3Reference manual for FPDoc Document version 3.2.2
package : Package reference . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.3.25 pre : Insert text as-is . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 5.3.26 printshort : insert short generated, and with the use of latex2rtf, RTF or Winhelp files. Text files can also be generated. 5 CHAPTER 1. INTRODUCTION Text plain ascii text files. No cross-referencing exists. Other than that it resembles specification of the content attribute of the meta tag in the generated HTML file: 3.2.4 chm-title This option is to specify a nicer0 码力 | 47 页 | 196.25 KB | 1 年前3CakePHP Cookbook 2.x
permissions Logging in Logout All done Contributing Documentation Translations Documentation Formatting Guide Tickets Reporting bugs Reporting security issues Code Initial setup Working on a patch CREATE TABLE posts ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, title VARCHAR(50), body TEXT, created DATETIME DEFAULT NULL, modified DATETIME DEFAULT NULL ); /* Then insert some posts it, or a XML formatted result for others to consume. The View layer is not only limited to HTML or text representation of the data. It can be used to deliver a wide variety of formats depending on your0 码力 | 1096 页 | 958.62 KB | 1 年前3Flask-RESTful Documentation Release 0.3.8
Flask. Installation Quickstart A Minimal API Resourceful Routing Endpoints Argument Parsing Data Formatting Full Example Request Parsing Basic Arguments Required Arguments Multiple Values & Lists Other request includes arguments your parser does not define. args = parser.parse_args(strict=True) Data Formatting By default, all fields in your return iterable will be rendered as-is. While this works great Multiple argument locations can be specified by passing a list to location: parser.add_argument('text', location=['headers', 'values']) When multiple locations are specified, the arguments from all locations0 码力 | 55 页 | 93.30 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100