Display device and control method
By setting up a display unit and a control unit in the display device, and using automatic scaling and width compression technology, the character size and layout are dynamically adjusted, solving the problem that the character size is difficult to predefine in multilingual and multi-size display devices, and achieving appropriate display and readability of text.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHARP KK
- Filing Date
- 2022-11-09
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies struggle to effectively determine character sizes in multilingual and multi-size display devices to ensure text readability and proper display, especially in web browser environments where character sizes are difficult to predefine and can easily lead to overflow or omission.
By setting up a display unit and a control unit in the display device, objects are temporarily configured and their display size is determined so that they are contained within the display area. Automatic shrinking and width compression technology are used to dynamically adjust the character size and layout according to the size of the display area.
It enables the appropriate display of text on multilingual and multi-size display devices, avoiding overflow and omission, and improving the readability and display efficiency of text.
Smart Images

Figure CN116137640B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to display devices, etc. Background Technology
[0002] Previously, various devices included display devices for displaying characters such as text and numbers. Furthermore, various technologies for the appropriate display of characters have been proposed.
[0003] For example, the following technique is proposed: when configuring characters within a line with a specified line width, the sum of the compression allowances between each word of the string to be configured and the excess amount greater than the line width when configuring the string with basic character spacing are obtained; if the sum of the compression allowances is less than the excess amount, the difference between the excess amount and the sum of the compression allowances is obtained; based on the difference, the additional compression amount allocated to each word of the string is obtained; and the compression allowances of each character and the additional compression amount are used to determine the compression amount between each character for character configuration (for example, see Patent Document 1).
[0004] Existing technical documents
[0005] Patent documents
[0006] Patent Document 1: Japanese Patent Application Publication No. 08-137866 Summary of the Invention
[0007] The technical problem to be solved by the present invention
[0008] When displaying text (strings) on a display device included in an image forming apparatus or similar device, it is necessary to contain the text within a defined display area while ensuring maximum readability of the characters. To improve readability, it is necessary to specify the largest possible character size for the text. Therefore, the character size that will fit perfectly within the display area must be verified separately beforehand.
[0009] In recent years, there has been an increase in the use of web browsers as the inherent display engine for devices. However, when using general-purpose display engines such as web browsers, it is difficult to predict the display results of various texts in advance, and it is difficult to predefine the size of objects such as text that are most appropriately displayed.
[0010] To achieve high-quality display, web browsers handle advanced text alignment and layout, adhering to W3C (World Wide Web Consortium) specifications. However, the scope of these functions varies between web browsers, and even for the same function, control differs significantly from browser to browser. Furthermore, even within the same web browser, actions can vary between versions due to feature improvements or other issues. Additionally, it's impossible to fully control and simulate the behavior of a web browser.
[0011] Furthermore, with the recent diversification of display devices such as smartphones and tablets, there is a growing amount of content designed to automatically adjust the display layout according to the size of various display devices. In content generally referred to as "responsive design," the size of the text display area sometimes dynamically changes according to the size of the content display area. In this case, text may sometimes overflow the display area, creating scrolling areas, or the overflowing portion may be truncated or omitted. To avoid this, a sufficiently small character size needs to be specified based on various scenarios. However, determining the character size based on worst-case scenarios often fails to fully utilize the text display area without creating the worst-case scenario. As a result, text is often displayed with characters smaller than the optimal character size, leading to reduced readability.
[0012] Furthermore, regarding character size control methods, there are methods that switch the character size applied to the display based on the number of characters in the displayed object. This method is used when displaying text in a defined display area, and when the number of characters in the displayed text varies significantly; for example, using 24px for up to 5 characters, 20px for 6-10 characters, and 18px for more than 5 characters. This control method is used for displaying telephone numbers, such as those in portable telephones. However, such a control method is only applicable in situations where there is no concept of automatic line wrapping, such as with telephone numbers, and where the input characters are limited to numbers and some symbols, and the required display width can be easily calculated based on the number of characters to be displayed. In word strings and sentences containing various characters and varying text lengths, it is difficult to predict the required width of the display area in advance, and it is difficult to determine the threshold for switching character sizes. In particular, in the case of Western language text, since automatic line wrapping is performed using separators such as spaces, sometimes even a slight change in character size can change the automatic line wrapping position of each line, resulting in a significant change in the number of displayed lines. Therefore, adjusting the character size for areas that can display multiple lines becomes more difficult. As a result, for the sake of full security, it is necessary to specify the character size of the characters displayed in the display area. Even if the text size switching is set to multiple levels, it is still impossible to avoid the situation of displaying text with an excessively small character size.
[0013] Furthermore, with globalization, it's not uncommon to display content in more than 20 languages. In such cases, text resources are switched for each language. However, when deploying a multi-screen UI (User Interface) in multiple languages, pre-validating and defining the most suitable character size for each language for each text display area is not only time-consuming but also increases the amount of data required, making it impractical. Additionally, while pre-stored fixed names and messages can have their appropriate character sizes pre-validated, user data, user-customizable data, and the appropriate character sizes for displaying dynamically retrieved text from external sources cannot be pre-validated.
[0014] This presents the problem of difficulty in pre-defining the character size and style of the text. Such a problem has not been considered in the prior art, such as in Patent Document 1.
[0015] In view of the above-mentioned problems, the present invention aims to provide a display device or the like that is capable of appropriately displaying objects in a display area.
[0016] Solution to the problem
[0017] To address the aforementioned issues, the display device of this disclosure includes a display unit and a control unit, wherein the control unit is configured to: temporarily place an object in the display area of the display unit, determine the display size of the object based on its dimensions, such that the object is contained within the display area, and depict the object within the display area according to the determined display size.
[0018] Furthermore, the control method disclosed herein is a control method for a display device, which includes: a step of temporarily placing an object in a display area; a step of determining the display size of the object by comparing the size of the object with the size of the display area, so that the object is included in the display area; and a step of depicting the object in the display area according to the determined display size of the object.
[0019] Invention Effects
[0020] According to this disclosure, a display device or the like can be provided that can appropriately display objects in a display area. Attached Figure Description
[0021] Figure 1 This is a perspective view of the image forming apparatus in the first embodiment.
[0022] Figure 2 This is a diagram illustrating the functional configuration of the image forming apparatus in the first embodiment.
[0023] Figure 3This is a diagram illustrating an example of the data structure of the setting table in the first embodiment.
[0024] Figure 4 This is a flowchart illustrating the main processing flow of the image forming apparatus in the first embodiment.
[0025] Figure 5 This is a flowchart illustrating the process of processing a fixed area in the first embodiment.
[0026] Figure 6 This is a flowchart illustrating the process of processing multiple rows of regions in the first embodiment.
[0027] Figure 7 This is a flowchart illustrating the process of processing beyond the height in the first embodiment.
[0028] Figure 8 This is a flowchart illustrating the width compression process in the first embodiment.
[0029] Figure 9 This is a flowchart illustrating the process for width compression processing exceeding the height in the first embodiment.
[0030] Figure 10 This is a diagram illustrating an example of operation in the first embodiment.
[0031] Figure 11 This is a diagram illustrating an example of operation in the first embodiment.
[0032] Figure 12 This is a diagram illustrating an example of operation in the first embodiment.
[0033] Figure 13 This is a diagram illustrating an example of operation in the first embodiment.
[0034] Figure 14 This is a diagram illustrating an example of operation in the first embodiment.
[0035] Figure 15 This is a diagram illustrating an example of operation in the first embodiment.
[0036] Figure 16 This is a diagram illustrating an example of operation in the first embodiment.
[0037] Figure 17 This is a diagram illustrating an example of operation in the first embodiment.
[0038] Figure 18 This is a diagram illustrating an example of operation in the first embodiment.
[0039] Figure 19 This is a diagram illustrating an example of operation in the first embodiment.
[0040] Figure 20 This is a diagram illustrating an example of operation in the first embodiment.
[0041] Figure 21 This is a diagram illustrating an example of operation in the first embodiment.
[0042] Figure 22 This is a diagram illustrating an example of operation in the first embodiment.
[0043] Figure 23 This is a diagram illustrating an example of operation in the first embodiment. Detailed Implementation
[0044] Hereinafter, an embodiment for carrying out the present disclosure will be described with reference to the accompanying drawings. Furthermore, the following embodiment is merely an example for illustrating the present disclosure, and the technical scope of the invention as described in the claims is not limited to the following description.
[0045] [1. First Implementation Method]
[0046] First, the first embodiment will be described. The first embodiment describes the application of the display device of the present disclosure to the image forming apparatus 10. The image forming apparatus 10 is an information processing device having functions such as copying, scanning, and document printing, and is also known as an MFP (Multi-Function Printer / Peripheral).
[0047] [1.1 Functional Composition]
[0048] The first embodiment of the present invention will be described with reference to the accompanying drawings. Figure 1 This is a perspective view of the image forming apparatus 10 according to the first embodiment. Figure 2 This is a block diagram showing the functional structure of the image forming apparatus 10.
[0049] like Figure 2 As shown, the image forming apparatus 10 is configured to include a control unit 100, an image input unit 120, an image forming unit 130, a display unit 140, an operation unit 150, a storage unit 160, and a communication unit 190.
[0050] The control unit 100 is a functional unit for controlling the overall image forming apparatus 10. The control unit 100 performs various functions by reading and executing various programs stored in the storage unit 160, and may be configured as, for example, one or more arithmetic units (CPU (Central Processing Unit)). Alternatively, the control unit 100 may also be configured as a SoC (System-on-a-Chip) with multiple functions, as described below.
[0051] The control unit 100 functions as the image processing unit 102 by executing programs stored in the storage unit 160. The image processing unit 102 performs various image-related processing. For example, the image processing unit 102 performs sharpening processing and grayscale conversion processing on the image input from the image input unit 120.
[0052] The image input unit 120 inputs image data to the image forming apparatus 10. For example, the image input unit 120 may be composed of a scanning device or the like capable of reading images and generating image data. The scanning device may, for example, use an image sensor such as a CCD (Charge Coupled Device) or a CIS (Contact Image Sensor) to convert the image into an electrical signal, and generate digital data by quantizing and encoding the electrical signal.
[0053] The image forming unit 130 forms (prints) an image on a recording medium such as recording paper. The image forming unit 130 may be, for example, a laser printer using an electrophotographic method. Figure 1 The paper supply tray 132 supplies recording paper, forms an image on the surface of the recording paper, and discharges the recording paper to the paper discharge tray 134.
[0054] The display unit 140 displays various information. The display unit 140 is composed of display devices such as LCD (Liquid crystal display), organic EL (electro-luminescence) display, and micro LED display.
[0055] The operation unit 150 accepts operations from the user using the image processing device 10. The operation unit 150 is composed of an input device such as a touch sensor. The input detection method in the touch sensor can also be a general detection method such as resistive film, infrared, electromagnetic induction, or electrostatic capacitance. In addition, the image forming apparatus 10 may also be equipped with a touch panel that is integrally formed by the display unit 140 and the operation unit 150.
[0056] The storage unit 160 stores various programs and data required for the operation of the image forming apparatus 10. The storage unit 160 may be composed of, for example, a semiconductor memory such as an SSD (Solid State Drive) or an HDD (Hard Disk Drive).
[0057] Storage unit 160 stores web browser application 162 and settings table 166, and as a storage area, ensures screen information storage area 164.
[0058] The web browser application 162 is software (display engine) used to display specified screens such as the main screen and operation screen on the display unit 140. The main screen is a basic screen displayed when the power is turned on, in standby mode, or when resuming from sleep mode, and is used to allow the user to select functions (operations) to be performed by the image forming apparatus 10. In addition, the operation screen is used to set and operate the performed operation.
[0059] The screen information storage area 164 stores data (screen information) used to display the screen (content) shown on the display unit 140 via the web browser application 162. The screen information is associated with each screen (e.g., the main screen, operation screens for various functions, etc.). The screen information consists of, for example, HTML (Hypertext Markup Language) data, CSS (Cascading Style Sheets) data, image data, etc.
[0060] Content creators who create visual information pre-specify the following information as settings for each text element (displayed object) within the content. Furthermore, the units for length and character size values shown in the following settings are, for example, pixels (px).
[0061] (1) Text area height and text area width
[0062] The text area height is the height of the area (hereinafter referred to as the "display area") where the text (string) element is displayed. The text area width is the width of the display area. Additionally, generally, for display quality and readability, white space (margins or padding) is ensured around the text, but the text area width and text area height mentioned above actually specify the width and height of the area depicting the text, excluding white space.
[0063] (2) Specify the character size (fsOriginal)
[0064] The specified character size is the value of the character size (font size) of the displayed text. In CSS, it is specified by the font-size property.
[0065] (3) Row height
[0066] Line height is the value of the height that is guaranteed to display a line of text. It is also called line advance. Line height can be set to a fixed value or specified as "1.5 times the character size". In CSS, it is specified by the line-height property.
[0067] (4) Specify the lower limit character size (fsSpecifiedReduceMin)
[0068] The minimum character size that can be set in the automatic shrinking process. Automatic shrinking refers to the process of updating the settings related to the display method of the text (hereinafter referred to as "style information") to the settings that depict the text within the display area when the text displayed based on the settings of (1) to (3) above extends beyond the display area. The specified lower limit character size can be set numerically or as a ratio relative to the specified character size. Furthermore, specifying the specified lower limit character size is not mandatory (it can be omitted). If no specified lower limit character size is specified, the minimum character size of the system described later is applied as the specified lower limit character size.
[0069] (5) Automatic zoom-out attribute
[0070] This indicates whether automatic scaling is applied. In this embodiment, any of the following values are set as the attribute value for the automatic scaling attribute.
[0071] • No automatic shrinking: Automatic shrinking should not be applied.
[0072] • Fixed line area: Automatic shrinking is applied. Displaying more than two lines is not allowed.
[0073] • Multi-line area: Applies automatic shrinking. Allows display of more than 2 lines.
[0074] Content creators can specify whether to apply automatic shrinking processing and whether to allow line breaks for each text element in the content, based on the settings for automatic shrinking processing.
[0075] In addition, there are three main reasons why line breaks occur.
[0076] • Create line breaks based on the line break characters specified in the text.
[0077] Automatic word wrap
[0078] Automatic line wrapping refers to the process of adding a newline character to the next line based on the delimiters such as spaces and hyphens in the text.
[0079] Forced line break (a line break within a word)
[0080] Forced line breaks refer to the practice of forcibly sending strings (excessive amounts) that exceed the width of the display area in words of Western languages such as English, even though the words do not contain separators.
[0081] If the content creator does not allow line breaks caused by the above factors and must display the text on a single line (for example, when the height of the display area cannot be adequately guaranteed), simply specify "Fixed Line Area" as the automatic shrinking attribute of the text element of that text.
[0082] Setting table 166 is a table that stores settings used in the automatic zoom-out process, for example... Figure 3 The table shown is a table that associates setting values with each setting item. The setting values stored in setting table 166 are fixed values that are universal throughout the entire content. In this embodiment, the following three setting values are stored in setting table 166.
[0083] (1) System minimum character size (fsSystemReduceMin)
[0084] The system minimum character size is the smallest character size value that can be set during automatic scaling (e.g., "12px"). When a lower limit for the character size that can be assigned to the display engine itself is defined, its value is the lower limit for the text character size. However, when a lower limit character size exists on the content side (image forming apparatus 10 side), its value is defined as the system minimum character size. To prevent the character size from becoming too small due to automatic scaling, the system minimum character size is predefined.
[0085] (2) The smallest character size that can be width-compressed (fsCondensedMin)
[0086] The minimum character size that can be width-compressed is a lower limit (e.g., "15px") representing the character size that can be width-compressed during automatic shrinking. Width compression refers to the process of displaying text in a shape that is proportionate to the character size within the display area. A minimum character size that can be width-compressed is predefined to prevent the readability of text from being reduced due to width compression of small character sizes.
[0087] (3) Lower limit of width compression ratio (fsCondensedRatioMin)
[0088] The lower bound of the width compression ratio represents the minimum value (e.g., 65%) set during automatic shrinking. Width compression ratio is the compression rate of character width in width compression; it's the deformation ratio used to display the width (length in the X direction) of a text element. For example, when transforming text that requires a width of 100px to a width of 70px, a value like "70%" or "0.7x" would be used as the compression ratio. In CSS, the width compression ratio is specified as "transform: scaleX(width compression ratio)". To prevent excessive compression of text character widths and reduced readability, a lower bound of the width compression ratio is predefined.
[0089] The communication unit 190 communicates with external devices via a LAN (Local Area Network) or WAN (Wide Area Network). The communication unit 190 may consist of a communication device or module, such as a NIC (Network Interface Card) used in a wired / wireless LAN. Alternatively, the communication unit 190 may also communicate with other devices via a telephone line. In this case, the communication unit 190 is configured with an interface (terminal) that allows insertion of a cable for connection to a telephone line, and performs fax communication and image transmission / reception with other devices using known standards or protocols such as G3 / G4 standards.
[0090] [1.2 Processing Flow]
[0091] Reference Figures 4 to 9 The process flow performed by the image forming apparatus 10 in this embodiment will be described. Figures 4 to 9 The processing shown is performed by the control unit 100, which reads the program stored in the storage unit 160.
[0092] [1.2.1 Main Processing]
[0093] Reference Figure 4 The main processing (main processing) performed by the image forming apparatus 10 will be explained. Figure 4 The processing shown is performed when the control unit 100 displays the screen on the display unit 140. Furthermore, assuming the control unit 100 reads and executes the web browser application 162 in parallel with the main processing, it can perform the prescribed display processing on the display engine. Additionally, in the following description, the object that sets the display size is described as a text element.
[0094] First, the control unit 100 reads the screen information of the displayed screen from the screen information storage area 164 (step S100). Furthermore, the control unit 100 can also set the display requirements for the read screen information. For example, in a web browser, since it is possible to specify the control method for text line breaks (line break control attribute), the control unit 100 can also set line break control attributes for text elements. For example, to prevent line breaks from text elements whose automatic shrinking attribute value is "fixed area per line," the control unit 100 specifies "nowrap" in the white-space attribute of the CS property of that text element.
[0095] Next, the control unit 100 selects a text element as the object of the automatic zoom-out process based on the read screen information (step S102). For example, the control unit 100 selects a text element contained in the displayed screen based on the screen information read in step S100, that is, a text element whose automatic zoom-out attribute value specifies either a "fixed line area" or a "multi-line area". Furthermore, in the following description, the text element selected in step S102 will be referred to as the "object element".
[0096] Next, the control unit 100 sets the character size of the text of the object element to a specified character size (step S104). For example, the control unit 100 sets the specified character size in the font-size attribute of the object element. Alternatively, the control unit 100 can also set the line height in the line-height attribute of the object element. In this way, the control unit 100 makes the style information of the object element reflect the setting value specified by the content creator.
[0097] Next, the control unit 100 determines whether the object element is a fixed-line area (whether the object element's auto-shrink attribute is "fixed-line area") (step S106). If the object element is a fixed-line area, the control unit 100 performs fixed-line area processing as an auto-shrink operation on the object element (step S106; if yes → step S108). Fixed-line area processing is the process of rewriting (updating) the style information of the object element from its original style information in order to display the text (a string in one line) of the object element in the display area. The processing of fixed-line areas will be explained later.
[0098] On the other hand, when the object element is a multi-line area, the control unit 100 performs multi-line area processing as an automatic shrinking process on the object element (step S106; no → step S110). Multi-line area processing is the process of rewriting (updating) the style information of the object element from its original style information in order to display the text (multi-line string) of the object element in the display area. The processing of multi-line areas will be explained later.
[0099] Next, the control unit 100 determines whether all text elements that are the objects of automatic shrinking have been selected (step S112). If no elements of the objects of automatic shrinking have been selected, the control unit 100 returns to step S102 (step S112; no → step S102).
[0100] In this way, the control unit 100 updates the following style information of the object elements by performing automatic scaling: character size, width compression ratio, and settings for whether to omit text (display attribute of ellipsis). For example, the control unit 100 sets the width compression ratio as the value of the property of scaling transformation relative to the string (or "transform: scaleX(width compression ratio)" in CSS).
[0101] On the other hand, when all elements of the object to be automatically scaled down are selected, the control unit 100 performs a process of depicting a screen on the display unit 140 based on the screen information read in step S100 (actual screen depiction process) (step S112; Yes → step S114). Furthermore, since the style information of the text elements is overridden in steps S108 and S110, the control unit 100 is able to display a screen reflecting the modified style information. Thus, the control unit 100 can depict the object element (object) within the display area according to the display size of the object element (object) determined by the processes in steps S108 and S110.
[0102] In this way, when there are text elements that require automatic scaling, the control unit 100 performs automatic scaling on each of these elements. Furthermore, after updating the style information of all text elements requiring automatic scaling to the size (character size, width compression rate) of the text contained within the display area of that text element, the control unit 100 performs actual screen rendering. Thus, the control unit 100 is able to render the text as contained within the display area.
[0103] [1.2.2 Processing a fixed area in one row]
[0104] Reference Figure 5 This section describes the processing flow for a fixed area. First, the control unit 100 compares the specified character size of the object element with the height of the display area (the height dimension), and then compares the size of the object element (object) with the size of the display area to determine whether the height is exceeded (step S200). Exceeding the height means that, in the case of text containing object elements, the height of the text is greater than the height of the display area. Furthermore, in S200, the control unit 100 can also determine that the height is exceeded if the specified character size is greater than the height of the display area.
[0105] When the height is not exceeded, the control unit 100 sets the character size of the object element to a character size equivalent to the height of the line area (the area displaying one line of text) specified by the object element (step S200; Yes → step S202). Thus, the control unit 100 changes (shrinks) the character size of the object element's text and sets it to a character size approximately the same height as the display area. For example, the control unit 100 considers the line height when setting the character size of the object element within the line area. Specifically, if the height of the line area is 30px, and the line height is 1.2 times the character size, then the control unit 100 sets the character size within the line area to 30 / 1.2 = 25 (px). On the other hand, when the height is not exceeded, the control unit 100 omits the processing in step S202 (step S200; No). In this case, the character size of the object element remains the specified character size.
[0106] Next, the control unit 100 performs temporary drawing (step S204). Temporary drawing refers to the display engine actually performing text display processing (configuration) of object elements while the screen is not displaying. That is, temporary drawing is the processing of temporarily configuring object elements. For example, the control unit 100 configures text in the display area on the display engine based on setting non-display attributes for object elements, thereby temporarily configuring the text.
[0107] Control unit 100 actually depicts the object element on a web browser, which acts as the display engine. At this time, control unit 100 sets the CSS visibility property of the object element's text to "hidden". Thus, control unit 100 can obtain the display status of the object element without displaying the object element's text on the actual screen.
[0108] Furthermore, temporary drawing only requires obtaining the display state of the object element. Therefore, the control unit 100 can also configure the text of the object element with a character color that is the same color as the background color of the display area, and obtain the display state of the text. Alternatively, the control unit 100 can configure the text, delete the text for a short time (for example, one frame after the frame in which the text is configured), and obtain the display state when the text is configured. Thus, the control unit 100 can display the text in a display method that is difficult for the user to visually recognize, and obtain the display state of the text.
[0109] Next, the control unit 100 obtains the display result information of the text of the temporarily drawn object element, compares the size of the object element (object) with the size of the display area, and determines whether it exceeds the width (step S206). For example, the control unit 100 obtains the height and width of the bounding rectangle area of the text configured by the browser as the text display result information. Thus, the control unit 100 can obtain the height and width of the area (bounding rectangle area) where the text is configured. Furthermore, exceeding the width means that, when text is configured, the width of the configured text is larger than the width of the display area. Here, the control unit 100 obtains the height and width of the area where the text is configured (drawn) as the display result information. At this time, the control unit 100 compares the width of the area where the text is configured with the width of the display area, and determines that it exceeds the width when the width of the area where the text is configured is greater than the width of the display area.
[0110] If the width is not exceeded, the control unit 100 accommodates the text of the object element in the display area, thus ending the processing of a fixed line area (step S206; no). In this case, regarding the style information of the object element, the character size is the specified character size or the character size set in step S202, and the width compression rate is 100% (no width compression). In addition, the text is displayed and not omitted.
[0111] On the other hand, when the width is exceeded, the control unit 100 calculates the width compression ratio (step S206; yes → step S208). For example, the control unit 100 calculates the width compression ratio by dividing the width of the display area by the width of the area where the text is arranged (text width) (width of display area / text width). By dividing the width of the display area by the text width, the control unit 100 can set the width compression ratio of the text of the object element to be the width compression ratio of displaying the text at a width approximately the same as the width of the display area. Here, by executing the processing of steps S202 and S208, the control unit 100 can set the character size and width compression ratio of any end of the text (top or bottom or left or right ends) that contacts or is near the end of the display area. That is, the control unit 100 can calculate and set the size (width compression ratio) of the text that is displayed as large as possible within the display area as the display size.
[0112] Next, the control unit 100 determines whether the width compression ratio calculated in step S208 is lower than the lower limit of the width compression ratio (step S210). If the width compression ratio is lower than the lower limit of the width compression ratio, the control unit 100 sets the display attribute of the ellipsis to "Display ON" and sets the lower limit of the width compression ratio to the value of the width compression ratio of the text of the object element (step S210; Yes → step S212 → step S214). In this case, regarding the style information of the object element, the character size is the specified character size or the character size set in step S202, the width compression ratio is the lower limit of the width compression ratio, and the display attribute of the ellipsis is "Display ON". In this way, the control unit 100 determines the display size of the object element (object) in a way that includes it in the display area. In addition, the control unit 100 uses characters whose shape is changed by reducing the display width of the characters by setting the width compression ratio to the lower limit of the width compression ratio.
[0113] Furthermore, the ellipsis display attribute indicates whether a portion of the text is omitted when depicting the text. In this embodiment, when the ellipsis display attribute is "display ON", the text is depicted with a portion of the text omitted; otherwise (e.g., when the ellipsis display attribute is "display OFF" or not specified), the text is depicted without omission. That is, a text element with the ellipsis display attribute being "display ON" displays only a portion of the text in the display area when it is impossible to display the entire text, thus displaying an ellipsis (e.g., "..."). For example, in step S212, the control unit 100 sets the ellipsis display attribute to "display ON" by specifying "ellipsis" for the text-overflow property of the object element's CSS.
[0114] On the other hand, if the width compression ratio is not lower than the lower limit of the width compression ratio, the control unit 100 sets the width compression ratio calculated in step S208 as the value of the width compression ratio of the text of the object element (step S210; no → step S216). In this case, the style information of the object element becomes the character size at the specified character size or the character size set in step S202, and the width compression ratio calculated in step S208. In addition, the text is displayed and not omitted. Thus, the control unit 100 determines the size of the text contained within the display area by changing the size of the text (character size, width compression ratio). In this way, the control unit 100 determines the display size of the object element (object) in a way that it is contained within the display area. In addition, the control unit 100 uses characters that change the shape of the characters by setting the width compression ratio to reduce the display width of the characters.
[0115] [1.2.3 Processing of Multi-line Regions]
[0116] Reference Figure 6 Let's explain the handling of multi-line areas. First, the control unit 100 prohibits line breaks within words (step S300). For example, the control unit 100 sets "prohibit line breaks within words" in the line break control property of the object element. For example, this is achieved by specifying "normal" in the overflow-wrap property of the object element's CSS. Thus, if the text of the object element contains words longer than the width of the display area, the text will be drawn beyond the display area during temporary drawing.
[0117] Next, the control unit 100 performs temporary drawing (step S302), obtains the display result information of the text of the object element, and compares the size of the object element (object) with the size of the display area to determine whether it exceeds the area (step S304). Exceeding the area means exceeding the height or the width.
[0118] The control unit 100 compares the width of the area containing text with the width of the display area. If the width of the area containing text is greater than the width of the display area, it determines that the width is exceeded. Additionally, the control unit 100 compares the height of the area containing text with the height of the display area. If the height of the area containing text is greater than the height of the display area, it determines that the height is exceeded. In other words, the control unit 100 compares the dimensions (height and width) of the text element (which is the displayed object) with the dimensions (height and width) of the display area. If either the width or the height exceeds the specified value, the control unit 100 determines that the area exceeds the specified value.
[0119] If the area is not exceeded, the control unit 100 terminates the processing of the multi-line area because the text of the object element is contained within the display area (step S304; No). In this case, the character size of the style information of the object element is the specified character size, and the width compression rate is 100% (no width compression). In addition, the text is displayed and not omitted.
[0120] On the other hand, if the text exceeds the display area, the control unit 100 determines whether the height exceeds the limit (step S304; yes → step S306). If the height exceeds the limit, the control unit 100 performs the height exceeding processing by allowing word wrapping, even if the text contains words longer than the width of the display area, wrapping the words based on the width of the display area (step S306; yes → step S308 → step S310). For example, in step S308, the control unit 100 sets "allow word wrapping" in the wrapping control property of the object element. For example, this is achieved by specifying "break-word" in the overflow-wrap property of the object element's CSS. As a result, the text of the object element is no longer configured to exceed the width of the display area. In addition, the height exceeding processing refers to the process of determining the size of the text contained within the display area by changing the size (character size, width compression ratio) of the text of the object element that causes the height exceeding. The height exceeding processing will be described later.
[0121] On the other hand, if the height is not exceeded, i.e., only the width is exceeded, the control unit 100 calculates the width compression ratio (step S306; no → step S312). For example, the control unit 100 calculates the width compression ratio by dividing the width of the display area by the width of the area where text is temporarily drawn.
[0122] Here, in step S300, line breaks in the middle of words are prohibited. Therefore, if there is a word longer than the display area, the word is displayed beyond the display area. On the other hand, the height of the text is contained within the display area. Specifically, the control unit 100 determines whether the text can be displayed in the display area by width compression alone. That is, the control unit 100 determines whether the width compression ratio is lower than the lower limit of the width compression ratio (step S140).
[0123] If the width compression ratio is not lower than the lower limit of the width compression ratio, the control unit 100 sets the width compression ratio of the object element to the width compression ratio calculated in step S312 (step S314; no → step S316). In this case, the style information of the object element becomes the character size at the specified character size and the width compression ratio calculated in step S312. Furthermore, the text is displayed and not omitted. Thus, the control unit 100 uses characters whose shape is changed by reducing the display width of the characters through setting the width compression ratio.
[0124] On the other hand, if the width compression ratio is lower than the lower limit of the width compression ratio, the control unit 100 allows line breaks in the middle of words and performs temporary drawing again (step S314; Yes → step S318 → step S320). Moreover, the control unit 100 obtains the display result information of the text of the object element and determines whether it exceeds the area (step S322).
[0125] If the area is not exceeded, the control unit 100 ends the processing of the multi-line area (step S322; No). In this case, the character size of the style information of the object element is the specified character size, and the width compression rate is 100% (no width compression). In addition, the text is displayed and not omitted. On the other hand, if the area is exceeded, the control unit 100 performs processing for exceeding the height (step S322; Yes → step S310).
[0126] In this way, without exceeding the height limit, the control unit 100 performs width compression, thereby changing the size of the text (character size, width compression rate) and determining the size of the text contained within the display area. Furthermore, by dividing the width of the display area by the width of the text, the control unit 100 sets any end of the text (the top or bottom end, or the left or right end) to be connected to or near the end of the display area.
[0127] [1.2.4 Handling of height exceeding limits]
[0128] Reference Figure 7 The handling of exceeding the height is explained. First, the control unit 100 subtracts 1px from the character size of the object element (step S400) and performs temporary drawing (step S402). The control unit 100 obtains the display result information of the text of the object element again, compares the size of the object element (object) with the size of the display area, and determines whether it exceeds the height (step S404).
[0129] If the height is not exceeded, the control unit 100 performs width compression processing (step S404; no → step S406). Width compression processing will be explained later. Furthermore, when the height is not exceeded, the text of the object element can be displayed without omitting any characters by setting a suitable character size (hereinafter referred to as "appropriate character size (fsFit)"). Additionally, by displaying text using an appropriate character size, the ends of the text are either in contact with or near the ends of the display area.
[0130] On the other hand, if the height is exceeded, the control unit 100 determines whether the character size of the object element is equal to the lower limit of the settable character size (step S404; yes → step S408). The lower limit of the settable character size is the specified lower limit character size of the object element (fsSpecifiedReduceMin) (or the system minimum character size (fsSystemReduceMin) if the object element does not have a specified lower limit character size).
[0131] If the character size of an object element is not equal to the lower limit of the settable character size, the control unit 100 returns to step S400 (step S408; no → step S400). Thus, if the height is exceeded, the control unit 100 repeatedly reduces the character size by 1px each time and performs temporary drawing until the height is exceeded or the character size reaches the lower limit of the settable character size. In this way, the control unit 100 determines the display size of the object elements (text) contained within the display area by changing (reducing) the character size of the object elements.
[0132] On the other hand, if the character size of the object element is equal to the lower limit of the settable character size, it means that even at the smallest settable size, the text is not contained in the display area. Then, at this moment, the character size of the object element becomes the specified lower limit character size. Therefore, based on setting the character size of the object element to the specified lower limit character size, the control unit 100 determines whether to omit the text from the display area or to display it by compressing the text width. Specifically, the control unit 100 determines whether the character size of the object element is less than the minimum character size that can be compressed in width (fsCondensedMin) (step S408; yes → step S410).
[0133] When the character size of an object feature is smaller than the minimum character size (fsCondensedMin) that allows for width compression, the control unit 100 sets the display attribute of the ellipsis to "Display ON" because width compression cannot be applied to the text of the object feature, thus ending the processing that exceeds the height (step S410; Yes → step S412). That is, even if the text size is changed, the control unit 100 cannot include the object feature (object) within the display area, therefore omitting a portion of the object feature to depict the string. In this case, the character size of the style information of the object feature is the specified lower limit character size, the width compression rate is 100% (no width compression), and the ellipsis display attribute is set to "Display ON".
[0134] On the other hand, if the character size of the object feature is greater than or equal to the minimum character size (fsCondensedMin) that allows for width compression, the control unit 100 can perform width compression at the current character size of the object feature (specified lower limit character size), and therefore attempts to compress the width of the object feature at that character size. Thus, the control unit 100 performs width compression processing for exceeding the height (step S414). The width compression processing for exceeding the height will be described later.
[0135] [1.2.5 Width Compression Processing]
[0136] Reference Figure 8 This section explains width compression. Width compression involves performing a width compression judgment and setting appropriate style information.
[0137] Width compression judgment processing refers to the process of determining, based on an appropriate character size (fsFit), whether the text of an object element can be contained within the display area through width compression while maintaining a specified character size. If the character size set for the object element is reduced, the issue of exceeding the height is resolved. The reason for resolving the height exceeding issue meets any one or both of the following conditions (A) and (B).
[0138] (A) As the height of each line is reduced, the height of the area containing the text is contained within the height of the display area.
[0139] (B) Because the character size is smaller and the character width is reduced, the number of characters that can be displayed in one line increases. As a result, the number of lines required to display text is reduced, and the height of the area containing the text is contained within the height of the display area.
[0140] In the case where the reason for exceeding the height is (B), the number of lines can be reduced by decreasing the character width, without needing to reduce the character height (character size) itself. Therefore, the control unit 100 determines whether case (B) is met (width compression determination process). Furthermore, the width compression determination process is equivalent to the processes from step S504 to step S510 described later. Additionally, in the case of (B), the control unit 100 sets an appropriate width compression rate for the object element and sets the character size of the object element to a specified character size.
[0141] First, the control unit 100 calculates the width compression ratio based on a suitable character size (step S500). For example, the control unit 100 calculates the width compression ratio by dividing the suitable character size (fsFit) by the specified character size (fsOriginal). Furthermore, the calculated width compression ratio is referred to as the theoretical width compression value (calcedCondensed).
[0142] Next, the control unit 100 determines whether the theoretical width compression value (calcedCondensed) is lower than the lower limit of the width compression ratio (fsCondensedRatioMin) (calcedCondensed < fsCondensedRatioMin) (step S502). If the theoretical width compression value is lower than the lower limit of the width compression ratio, the control unit 100 does not perform width compression, specifies an appropriate character size (fsFit) as the character size of the object feature, and ends the width compression determination process (step S502; Yes). In this case, the character size of the style information of the object feature is an appropriate character size, and the width compression ratio is 100% (no width compression). In addition, the text is displayed and not omitted.
[0143] On the other hand, if the theoretical width compression value is not lower than the lower limit of the width compression rate (step S502; no), the control unit 100 determines whether the text is contained within the display area by width compression (width compression determination process). The control unit 100 returns the character size of the object element to the specified character size (step S504). In addition, the control unit 100 expands the area width of the display area (step S506).
[0144] Here, width compression of object elements is achieved by image deformation processing in the X direction on the normal display state of the object elements. Therefore, the control unit 100 causes the display engine (web browser) to perform line wrapping processing in the state before width compression, and applies width compression deformation to the processed result, thereby achieving width compression. Temporary drawing is performed by expanding the display area, and the line wrapping position after width compression appears in the temporarily drawn text. That is, the control unit 100 temporarily expands the area width of the display area to the width obtained by multiplying the area width of the display area by the reciprocal of the theoretical value of width compression (1 / calcedCondensed), and temporarily draws the text in the display area with a specified character size. Thus, the control unit 100 can perform temporary drawing of text based on the line wrapping position and line number after width compression. Therefore, in step S506, the control unit 100 expands the display area width of the object element's text by setting it to the width obtained by multiplying the width of the display area by the reciprocal of the theoretical value of width compression. Moreover, the control unit 100 temporarily draws the text in the expanded display area (step S508).
[0145] Next, the control unit 100 acquires display result information and compares the size of the object element (object) with the size of the display area to determine whether it exceeds the area (step S510). If it does not exceed the area, since the text of the object element is contained within the display area, the control unit 100 sets the width compression ratio (theoretical width compression value) calculated in step S500 as the width compression ratio of the object element (step S510; no → step S512). In this case, for the style information of the object element, the character size is the specified character size, and the width compression ratio is the theoretical width compression value. In addition, the text is displayed and not omitted. That is, in the text of the object element, with the specified character size set to the specified character size, the width compression ratio (theoretical width compression value) under the specified character size is set in a way that it is contained within the display area.
[0146] Thus, when the width compression judgment process determines that text (multi-line string) is allowed to be displayed in multiple lines, and it is contained within the display area by reducing the specified character size (specified character size), the control unit 100 performs width compression. Here, as the width compression rate, the control unit 100 sets the ratio of the specified character size to the reduced character size (suitable character size) as the compression rate (theoretical value of width compression) of the width within the specified character size. At this time, based on the theoretical value of width compression, the control unit 100 can determine the size of the text (width compression rate) in a way that allows the text to be contained within the display area while maintaining the specified character size within the display area, provided that the text can be displayed within the display area.
[0147] On the other hand, when the area is exceeded, since the text of the object element is not contained within the display area during width compression, the control unit 100 does not perform width compression, but sets the appropriate character size to the character size of the object element's text (step S510; Yes → step S514). In this case, the character size of the object element's style information is the appropriate character size, and the width compression rate is 100% (no width compression). In addition, the text is displayed and not omitted.
[0148] [1.2.6 for width compression processing exceeding height]
[0149] Reference Figure 9 The width compression process for elements exceeding their height is explained below. The width compression process for elements exceeding their height is as follows: Three pre-set width compression rates (85%, 75%, 65%) are sequentially assigned to the object element, and it is determined whether it is contained within the display area to determine the width compression rate. The determination of whether to contain the element with width compression is used in… Figure 8The width compression judgment process described herein uses the same method. That is, the control unit 100 sets the width of the display area to a value that is temporarily multiple of the theoretical width compression value to perform temporary drawing, and determines whether to include the text of the object element through width compression based on whether the text exceeds the area.
[0150] First, the control unit 100 expands the width of the display area to a width equivalent to 85% of the width compression rate and performs temporary drawing (step S600 → step S602). The control unit 100 compares the size of the object element (object) with the size of the display area to determine if it exceeds the height (step S604). If it does not exceed the height, the control unit 100 sets the width compression rate of the object element to 85% (step S604; no → step S622). In this case, the character size of the style information of the object element is the specified lower limit character size, and the width compression rate is 85%. Furthermore, the text is displayed without being omitted.
[0151] If the height is exceeded, the control unit 100 expands the width of the display area to a width equivalent to 75% of the width compression rate (step S604; Yes → step S606), and performs temporary drawing (step S608), then determines whether the height is exceeded (step S610). If the height is not exceeded, the control unit 100 sets the width compression rate of the object element to 75% (step S610; No → step S622). In this case, the character size of the style information of the object element is the specified lower limit character size, and the width compression rate is 75%. Furthermore, the text is displayed and not omitted.
[0152] If the height is exceeded, the control unit 100 expands the display area width to a width equivalent to 65% of the width compression rate (step S610; Yes → step S612), performs temporary drawing (step S614), and determines whether the height is exceeded (step S616). If the height is not exceeded, the control unit 100 sets the width compression rate of the object element to 65% (step S616; No → step S622). In this case, the character size of the style information of the object element is the specified lower limit character size, and the width compression rate is 65%. Furthermore, the text is displayed and not omitted.
[0153] When the height is exceeded, the control unit 100 will set the lower limit of the compression ratio (at... Figure 9 The width compression rate of the object feature is set to 65% (step S616; Yes → step S618). Additionally, the control unit 100 sets the display attribute of the ellipsis symbol for the object feature to "Display ON" (step S620). In this case, the character size of the style information of the object feature is the specified lower limit character size, and the width compression rate is 65%. Furthermore, the text is displayed omittingly.
[0154] [1.3 Action Examples]
[0155] The action examples in this embodiment are described with reference to the accompanying drawings. Furthermore, the settings for text elements in the action examples are as follows.
[0156] Font: Noto Sans
[0157] Minimum character size in the system: 12px
[0158] • Specify a lower limit character size: 12px, the same as the system's minimum character size if not specified.
[0159] • Minimum width compression ratio: 65%
[0160] Minimum character size that can be compressed in width: 15px
[0161] • Display area (fixed row): 100px wide, 30px high
[0162] • Display area (multi-line area): Width 100px, Height 48px
[0163] • Line height: 1.2 times the specified character size
[0164] • Line break control: Line breaks are initiated by word intervals (spaces). Words exceeding the display area are forced to wrap to a newline character by character.
[0165] in addition, Figures 10 to 13 This is a diagram illustrating an example of how the automatic shrinking attribute works for text elements that are fixed areas within a single line. Figures 14 to 22 This is a diagram illustrating an example of how the automatic shrinking attribute works for text elements that are multi-line regions. Additionally, in Figures 10 to 22 In the image, the rectangular area indicated by the solid line represents the display area.
[0166] Figure 10 This diagram illustrates an example of an action where the width does not exceed the height limit during a temporary drawing that has been created after setting the character size. Figure 10 The text element shown is “Abcdefg”, with a specified character size of 30px.
[0167] Figure 10 (a) shows an example of a drawing when text is drawn in the display area at a specified character size. Figure 10 As shown in (a), if the text is displayed with a specified character size, the height of the text is greater than the height of the display area, which is called exceeding the height.
[0168] In this case, the character size of the text element is rewritten (changed) to a character size equivalent to the height of the display area, which is 25px (=30px / 1.2). Figure 10 (b) is a diagram showing text temporarily drawn with modified character sizes. The text is drawn in a way that it is contained within the display area. Based on this temporary drawing result, for text elements, properties such as character size of 25px and width compression rate of 100% (no width compression) are set. Figure 10 (c) is a diagram showing the text that is finally displayed on the display screen after performing actual screen drawing processing (hereinafter referred to as "final display"). Figure 10 As shown in (c), the text is displayed within the display area. Furthermore, the text is not omitted.
[0169] Figure 11 This is a diagram illustrating an example of an action that does not exceed the width. Figure 11 The text element shown is “Abc def”, with a specified character size of 25px.
[0170] Figure 11 (a) is a diagram showing text temporarily drawn in the display area. For example... Figure 11 As shown in (a), since the text does not exceed the width of the display area (it does not exceed the width), there is no need to compress the width of the text. Based on this temporary drawing result, for text elements, set properties such as character size to 25px and width compression rate to 100% (no width compression). Figure 11 (b) shows the final displayed diagram. For example... Figure 11 As shown in (b), the text is displayed directly using the specified character size.
[0171] Figure 12 This is a diagram illustrating an example of an action occurring when the width exceeds the limit. Figure 12 The text element shown is “Abc def ghi”, with a specified character size of 25px.
[0172] Figure 12 Figure (a) shows text temporarily drawn in the display area. Here, the text width is 132px, which is greater than the width of the display area, which is 100px, thus exceeding the width. In this case, as a width compression rate, the value obtained by dividing the width of the display area (100px) by the text width (132px) is 0.75 (75%).
[0173] Based on this temporary drawing result, for text elements, set attributes such as character size to 25px and width compression rate to 75%. Figure 12 (b) shows the final displayed diagram. For example... Figure 12 As shown in (b), the text is displayed in the display area with a width compression rate of 75%, making it the original area width (100px). Furthermore, the text is not omitted.
[0174] Figure 13 This is a diagram illustrating another example of an action that occurs when the width exceeds the limit. Figure 13 The text element shown is “Abc def ghi jklm”, with a specified character size of 25px.
[0175] Figure 13 (a) is a diagram showing text temporarily drawn in the display area. Here, the text width is 188px, which is greater than the width of the display area, which is 100px, thus exceeding the width. In this case, the width of the display area is calculated as a width compression ratio.
[0176] The value obtained by dividing 100px by the text width (188px) is 0.53 (53%).
[0177] The calculated width compression rate is 53%, which is lower than the lower limit of 65%. Therefore, for text elements, the width compression rate is set to 65%, which is the lower limit of width compression. Based on this provisional drawing result, for text elements, attributes such as character size 25px, width compression rate 65%, and display attribute of ellipsis "display ON" are set.
[0178] Furthermore, even when the display property of the ellipsis is set to "Display ON", it is sometimes impossible to display the ellipsis properly, even if the text-overflow of the object element's CSS is set to "ellipsis". For example, there are cases where web browsers do not support the function of omitting multi-line text. Therefore, when the display property of the ellipsis is set to "Display ON", the image forming apparatus 10 can also process the displayed text by removing the characters at the end of the display area by an amount corresponding to the width required to display the ellipsis (e.g., "...") and replacing them with the ellipsis, and then display the processed text.
[0179] In this action example, the lower limit of the width compression ratio is 0.65 (the reciprocal of which is 1.53). Therefore, as... Figure 13 As shown in (b), the width of the display area is expanded to 153px (100px * 1.53). Furthermore, the image forming apparatus 10 determines the text to be displayed by temporarily drawing text within the expanded display area, obtaining the maximum length of text (a portion of the text) that can be displayed together with the ellipsis. For example, the image forming apparatus 10 sets the text to be displayed as "Abc def ghi...".
[0180] Figure 13 (c) shows the final displayed diagram. For example... Figure 13 As shown in (c), the text is omitted along with the ellipsis and is contained within the original display area.
[0181] Figure 14 This is a diagram showing an example of an action that does not exceed the specified area. Figure 14 The text element shown is “ABC DEF GHI”, and the specified character size is 18px.
[0182] Figure 14 (a) is a diagram showing the result of a temporary drawing when text is temporarily drawn in the display area at a specified character size. The text does not protrude from the display area (it does not exceed the area). Based on this temporary drawing result, for text elements, properties such as setting the character size to 18px of the specified character size and the width compression rate to 100% (no width compression) are applied. Figure 14 (b) is the final diagram shown. Figure 14 As shown in (b), the text is contained within the display area.
[0183] Figure 15 This is a diagram illustrating an example of an action where a word is wider than the display area, and the text is contained within the display area through width compression. Figure 15 The text element shown is “ABCDEFGHIJKL MNO”, with a specified character size of 18px.
[0184] Figure 15 (a) is a diagram showing the text temporarily drawn in the display area (the result of the temporary drawing). Figure 15 As shown in (a), the text contains words longer than the width of the display area, resulting in a temporary drawing that exceeds the width. Here, the width of the area containing the text is set to 126px, which is greater than the width of the display area, i.e., 100px. In this case, as a theoretical value for width compression, the display area width (100px) divided by the text width (126px) yields a value of 0.79 (79%).
[0185] Based on this provisional drawing result, for text elements, attributes such as character size of 18px and width compression rate of theoretical width compression value (79%) are set. Figure 15 (b) shows the final displayed diagram. For example... Figure 15 As shown in (b), the text is displayed in characters within the display area with a width compression rate of 79%.
[0186] In addition, generally speaking, if line breaks are allowed within a word, then such as Figure 15As shown in (c), long words in the text are sometimes displayed on a new line. However, for readability, the words are not split. Figure 15 (b) is obviously more preferred. The image forming apparatus 10 of this embodiment can achieve [the following] by setting "prohibit word breaks" in the text's line break control attribute. Figure 15 The display shown in (b) is as follows.
[0187] Figure 16 This is a diagram illustrating an example of a situation where a word is wider than the display area, and the text is not contained within the display area by width compression, but can be contained within the display area by forced word wrapping. Figure 16 The text element shown is “ABCDEFGHIJKLMNO”, with a specified character size of 18px.
[0188] Figure 16 (a) is the temporary drawing result at the specified character size. For example... Figure 16 As shown in (a), the text contains words longer than the width of the display area, and the temporary drawing result exceeds the width. When the width of the area containing the text obtained based on the temporary drawing result is greater than the width of the display area, which is 171px of 100px, the theoretical width compression value is 0.58 (=100 / 171). 0.58 is lower than the lower limit of the width compression rate (65%). In this case, no width compression is performed.
[0189] In this case, a temporary drawing is performed again while allowing line breaks in the middle of words. Figure 16 (b) is a diagram showing the results of a provisional depiction. For example... Figure 16 As shown in (b), the height and width of the area containing the text are both contained within the display area. Therefore, Figure 16 The display shown in (b) is displayed as the final display.
[0190] also, Figure 16 (c) is a diagram illustrating an example of text displayed when width compression is applied to prioritize avoiding line breaks within words. For instance, in long strings such as phone numbers, email addresses, and URLs (Uniform Resource Locators), where each character needs to be explicitly displayed, compared to... Figure 16 The display shown in (c) is as follows: Figure 16 The display shown in (b) is clearly more preferred. In this embodiment, text is depicted using a specified character size while allowing line breaks in the text, thereby achieving... Figure 16 The display shown in (b) is as follows.
[0191] Figure 17This is a diagram illustrating an example of a situation where a word is wider than the display area and exceeds the height when a word is forced to wrap. Figure 17 The text element shown is “ABCDEFGHIJKLMNO PQRS”, with a specified character size of 18px.
[0192] Figure 17 (a) represents the temporary drawing result, which exceeds the width. In this case, the width compression ratio is calculated to determine whether width compression can be performed. Here, when the width of the text area obtained based on the temporary drawing result is set to 171px, which is greater than the width of the display area (100px), the theoretical width compression value is 0.58 (=100 / 171). Since 0.58 is below the lower limit of the width compression ratio (65%), width compression is not performed.
[0193] Figure 17 (b) is a diagram showing the result of a temporary drawing of a specified character size with word breaks allowed. For example... Figure 17 As shown in (b), the text is displayed in 3 lines, exceeding the height. In this case, the character size of the text is shortened by 1px for temporary drawing. This process is repeated, compressing the character size of the text from 17 to 16 to 15px. Here, as... Figure 17 As shown in (c), when the character size is 15px, the text is contained within the display area. In this case, a suitable character size is 15px. Alternatively, a suitable character size is 0.83 (=15 / 18).
[0194] Next, width compression is used to determine whether the text is contained within the display area. Figure 17 (d) is a diagram showing the display area width being expanded to 120px and then temporarily drawn with text of a specified character size within the expanded display area. 120px is the width obtained by multiplying the display area width (100px) by the reciprocal of the theoretical width compression value (1.20). As a result of the temporary drawing, the text is contained within the display area; therefore, the expanded display area width is drawn with a width compression rate of 83%, making it the original area width (100px). Figure 17 (e) is the diagram showing the final display.
[0195] Figure 18 This diagram illustrates an example of how text can be contained within a display area when the height exceeds the limit and width compression occurs. This is achieved by replacing the character size reduction rate with the width compression rate. Figure 18 The text element shown is “ABCD EFGHIJK LMNO”, with a specified character size of 18px.
[0196] Figure 18 (a) is the temporary drawing result at the specified character size. For example... Figure 18 As shown in (a), when temporarily drawn with a specified character size, the height is exceeded. In this case, the character size of the text is shortened by 1px during temporary drawing. This process is repeated to shorten the character size of the text to 17→16→15→14px. Here, as... Figure 18 As shown in (b), when the character size is 14px, the text is contained within the display area. In this case, a suitable character size is 14px. Furthermore, a suitable character size is 0.78 (=14 / 18). Moreover, setting the character size for displaying text as the character size when the character size is reduced to be contained within the display area is prior art. When using prior art, the following... Figure 18 The display is as shown in (b).
[0197] Next, a compression ratio based on a suitable character size is calculated. The compression ratio is 0.778 (=14 / 18). Then, the character size is returned to its original 18px, and the calculated compression ratio of 0.78 is used as the width compression ratio for temporary drawing. Specifically, the width of the display area is temporarily increased by a multiple of the inverse of the compression ratio (1 / 0.778, 1.29 times), so that the display area becomes less than its original width after width compression, and temporary drawing is performed. Figure 18 (c) is a diagram showing the temporary drawing results. For example... Figure 18 As shown in (c), the text is contained within the display area.
[0198] In this case, additional width compression is set in the text element to be displayed at its original width. For example, add a CSS setting like "transform: scaleX(0.778)" to the object element. Figure 18 (d) is a diagram showing the final display. This is in contrast to the diagram showing the existing method. Figure 18 Compared to (b), Figure 18 (d) is displayed using larger characters of text.
[0199] Figure 19 This is a diagram illustrating an example of the action of reducing the size of characters to accommodate text within the display area. Figure 19 The text element shown is “ABC DEF GHI JKLMNOP QRSTU VWXYZ12”, with a specified character size of 20px and a specified lower limit character size of 12px.
[0200] Figure 19 (a) is the temporary drawing result at the specified character size. For example... Figure 19 As shown, the temporary drawing results exceed the height. Figure 19 (b) is a diagram showing the temporary drawing result during the process of redrawing by reducing the character size by 1px. It is the temporary drawing result when the character size is 13px. Even with a character size of 13px, it exceeds the height.
[0201] Figure 19 (c) is the temporary drawing result when the character size is 12px. In this case, the text is contained within the display area. Therefore, the appropriate character size is 12px. The width compression ratio calculated from the appropriate character size is 0.60 (=12 / 20). The width compression ratio of 0.60 is lower than the lower limit of width compression ratio of 0.65, so the text cannot be replaced by width compression. In this case, the text is not width compressed. Figure 19 The display shown in (c) becomes the final display.
[0202] Figure 20 This diagram illustrates an example of an action where text cannot be contained within the display area even when the character size is reduced, through width compression. Figure 20 The text element shown is “ABC DEF GHI JKLMNOP QRSTU VWXYZ123456 7890”, with a specified character size of 16px.
[0203] Figure 20 (a) is the temporary drawing result at the specified character size. For example... Figure 20 As shown in (a), the temporary drawing results exceed the height. Figure 20 (b) is the temporary drawing result when the character size is reduced to the system's minimum character size (12px). Figure 20 As shown in (b), the height is exceeded. Therefore, the system's minimum character size (12px) was used as the character size for the text.
[0204] Additionally, since the character size is smaller than the minimum size that can be width-compressed (15px), no width compression is performed. Therefore, the width compression rate relative to the text is 100% (no width compression). Since the text is not contained within the display area, the display property for ellipses in the text is set to "Display ON". Figure 20 (c) shows the final display. The text is displayed using the system's minimum character size (12px) without width compression. Additionally, the text is displayed omitting some text.
[0205] Figure 21 This is a diagram illustrating an example of how text can be contained within the display area when it cannot be contained within a specified lower character size, but is contained through width compression. Figure 21The text element shown is “ABC DEF GHI JKLMNOP QRSTU”, with a specified character size of 20px and a specified lower limit character size of 15px.
[0206] Figure 21 (a) is a temporary depiction of the text at the specified character size. For example... Figure 21 As shown in (a), the temporary drawing results exceed the height. Figure 21 (b) is the temporary drawing result when the character size is reduced to the specified lower limit character size (15px). Figure 21 As shown in (b), the height is exceeded. Therefore, the specified lower limit character size (15px) was used as the character size for the text.
[0207] Next, determine the width compression ratio. Figure 21 (c) is a diagram showing the result of a temporary drawing when the width of the display area is expanded to a width equivalent to 85% (1.17 times) of the width compression ratio. Figure 21 As shown in (c), it becomes a region exceeding the specified area. Figure 21 (d) is a diagram showing the result of a temporary drawing when the width of the display area is expanded to a width equivalent to 75% (1.33 times) and a temporary drawing is performed. Figure 21 As shown in (d), no area was exceeded. Therefore, a width compression ratio of 75% was adopted. Figure 21 (e) is a diagram showing the final display when a width compression rate is additionally set in the text element for the original width display.
[0208] Figure 22 This diagram illustrates an example of an action that occurs when text cannot be contained within the display area using a specified lower limit character size and width compression, resulting in omissions. Figure 22 The text element shown is “ABC DEF GHI JKLMNOPQRSTU VWXYZ”, with a specified character size of 20px and a specified lower limit character size of 15px.
[0209] Figure 22 (a) is the temporary drawing result at the specified character size, which becomes greater than the height. Figure 22 (b) is the temporary drawing result when the character size is reduced to the specified lower limit character size (15px), which exceeds the height. Therefore, the specified lower limit character size (15px) is used as the character size for text.
[0210] Next, the width compression ratio is determined. Here, the width of the display area is expanded to a width equivalent to 85% of the width compression ratio (1.17 times) and temporarily drawn, resulting in an oversize area. Similarly, oversize areas are also generated when the width compression ratio is 75% and 65%. Figure 22 (c) is a diagram showing the result of a temporary drawing when the width of the display area is expanded to a width equivalent to 65% (1.53 times), becoming an over-area. In this case, the display attribute of the ellipsis is "Display ON", and 65% is used as the width compression rate. Additionally, the text is displayed omittingly. Here, the text displayed along with the ellipsis is as follows: Figure 22 As shown in (d), it becomes "ABC DEFGHI JKLMNOP QRSTU V...". Figure 22 (e) is a diagram showing the final display when a width compression rate is additionally set in the object element for display at its original width.
[0211] Next, the operation screen of the copying function of the image forming apparatus 10 is shown. Figure 23 (a) is a diagram showing the operation screen W100 with text displayed in English. Figure 23 (b) is a diagram showing the operation screen W110 with text displayed in Greek.
[0212] Figure 23 Area E100 in (a) is a region displaying a text element with multiple lines. Here, the specified character size of this text element is 32px, and the display area height is 60px. In this case, if the text is drawn at the specified character size, it will become two lines due to automatic line wrapping (if temporary drawing is performed, "Punch" will automatically wrap to the next line). However, since the area height is 60px, displaying the character at the specified character size of 32px results in exceeding the height limit. For this text element, after processing for exceeding the height limit, it is determined that it can be displayed at 29px (i.e., the appropriate character size = 29px). Furthermore, through width compression judgment processing, 0.90 (=29 / 32) is calculated as the theoretical value of width compression (width compression ratio). Maintaining the specified character size, it is determined that it can be displayed in the display area through width compression. Therefore, width compression is performed on this text element, and the character size is maintained at the specified character size of 32px while applying a width compression ratio of 90% and displayed in one line.
[0213] Figure 23(b) Area E110 is the area for displaying a fixed line of text elements, with a specified character size of 32px. In this case, if the text is configured with the specified character size, the text will exceed the width of the display area, but the fixed line processing applies a width compression rate of 75%.
[0214] Figure 23 Area E112 in (b) is the area for displaying text elements with multiple lines. The specified character size is 32px, and the display area height is 60px. If the text is drawn with the specified character size, although it will become two lines through automatic line wrapping, it will exceed the height of the specified character size of 32px because the area height is 60px. For this text element, 25px is determined as the appropriate character size through the height excess processing. Furthermore, the width compression judgment process determines that it cannot be displayed in the display area while maintaining the specified character size. Therefore, as a result, the text is automatically displayed with a character size of 25px and is displayed as two lines without width compression.
[0215] Figure 23 Region E114 in (b) is the region where text elements with multiple lines are displayed. The specified character size is 18px. If the text is drawn with the specified character size, it will not exceed the height, only the width. The width compression rate is 79%, calculated based on the width of the region containing the text and the width of the display area. Therefore, the text is displayed with a 79% width compression rate.
[0216] Thus, the image forming apparatus 10 of this embodiment does not need to predetermine the final display size for each text, and can display various texts with optimal character representation. In addition, even if text resources that can be switched between displaying texts such as English and Greek, the image forming apparatus 10 of this embodiment can display texts in various languages with optimal shapes in the same display process regardless of language.
[0217] Furthermore, the above processing can be modified as follows. For example, the lower limit value of the character size, such as the specified lower limit character size or the system minimum character size, can be automatically switched based on factors such as screen resolution, viewing distance, ambient brightness, and screen contrast. This is because the visibility of text changes due to these factors.
[0218] In addition, Figure 7In step S400 of the processing for characters exceeding the height shown, an example is given where the character size is reduced by 1px, but the unit (control unit) of the reduced character size is set to 1px. The control unit can be 2px, or it can be a non-integer value. Furthermore, the unit can be anything other than pixels, such as points (pt) or a percentage from the base size; any unit that can be used as the unit for the specified size can be chosen arbitrarily. Additionally, the character size does not always have to change by a fixed amount. For example, the amount of change can be appropriately varied, such as reducing by 2px if the character size is 20px or more, and reducing by 1px if the character size is less than 20px.
[0219] Additionally, processing can be switched based on the displayed language. For example, the lower limit of width compression ratio can be changed for each language (font). Generally, Chinese characters are more complex due to their numerous lines, so if they are long, their readability is more likely to decrease than English characters. Therefore, the lower limit of width compression ratio can be specified individually for each display language or each display font, just as the lower limit of width compression ratio is set to 75% for Chinese and 65% for English.
[0220] Alternatively, the lower limit of the width compression ratio for each character size can be changed. If the character size is small, the readability of complex characters decreases. Therefore, it may not be preferable to apply the same width compression to text with small character sizes as to text with large character sizes. In this case, the lower limit of the width compression ratio can also be changed according to the character size.
[0221] Furthermore, while the above embodiments describe width compression through character image deformation processing, variable fonts or compact fonts can also be used. For example, by applying the calculated width compression ratio as a parameter for the character width of a variable font, width compression can be easily and aesthetically pleasingly achieved. Additionally, if a compact font is provided to the font to be displayed, and it can be used in a display system, control can be implemented to switch the font to a compact font with a calculated width compression ratio before display. In any environment where multiple compact fonts with varying compression levels can be utilized, more aesthetically pleasing characters can be displayed.
[0222] Furthermore, the system's minimum character size and other settings (thresholds) can be switched between multiple modes depending on the size and resolution of the display unit 140, the type of screen being displayed, and the purpose. Alternatively, they can always be specified from the content side.
[0223] Furthermore, the above description explained the case where, in width compression processing and width compression processing for height exceeding the specified area, the width of the display area is expanded when determining whether the area is exceeded. However, it is also possible to determine whether the area is exceeded by compressing the character shape by that width. In this case, the control unit 100 can determine that: if the character whose shape has changed is contained within the display area, then the area is not exceeded; if the character whose shape has changed is not contained within the display area, then the area is exceeded. Thus, the control unit 100 can determine the width compression rate based on the character whose shape has changed.
[0224] Furthermore, while the description explains setting an automatic shrinkage attribute value for each text element, if all text elements can undergo the same automatic shrinkage process, specifying the automatic shrinkage attribute may not be necessary. In this case, a method for performing automatic shrinkage on the text elements is preset, and the control unit 100 performs the automatic shrinkage process based on this method.
[0225] Additionally, the width compression ratio lower limit can be set per feature. Alternatively, instead of specifying a specific value, the lower limit character size can be specified as a ratio relative to the specified character size (e.g., 50%). Furthermore, the specified lower limit character sizes can be combined into a single system minimum character size. In this case, the lower limit character size is not specified for each text feature; the lower limit for the character size of all text features becomes the system minimum character size.
[0226] In addition, Figure 9 In the width compression processing shown, which is used for widths exceeding the height limit, the trial width compression rate is set to three fixed values, but the trial stage and the percentage of change can be arbitrarily determined. Alternatively, different types of width compression rates can be used for the character size of each object element. Furthermore, the trial width compression rate can be determined as a ratio relative to the character size, or it can vary in units. In the above description, the minimum selected width compression rate is set to 65%, the same as the lower limit of the width compression rate, but different values can be used.
[0227] Furthermore, the above embodiments describe the case of displaying content described by HTML / CSS in a web browser engine, which is a common display system. However, the display system is not limited to a web browser. A display engine is a system that describes the layout of text and can perform actual text display processing without being reflected on the screen, as long as the result of this display processing can be obtained.
[0228] Furthermore, in this embodiment, the image forming apparatus 10 is described as a display device, and the size of the text displayed on the display unit 140 is set by the control unit 100. However, the display device of this embodiment can also be implemented by a device other than the image forming apparatus 10. For example, the aforementioned display device can be implemented by an image reading device such as a scanner, or by an ATM, machine tool, etc. That is, the aforementioned display device can be implemented in a device equipped with a display unit. Additionally, it can also be implemented by incorporating... Figures 4 to 9 The above-described display device is implemented using the execution program or program library described herein.
[0229] As described above, the image forming apparatus of this embodiment can determine the display parameters (style information) of text based on the display results of the display engine. Therefore, content creators of the image forming apparatus of this embodiment do not need to predefine optimal settings for each display element. Even if the behavior of the display engine changes due to functional improvements or adverse conditions, the text can be displayed appropriately without needing to be aware of the differences between each display engine. In addition, content creators can also display appropriately dynamic text that cannot be determined in advance or text in content presentations where the screen size layout changes, such as responsive design. That is, content creators do not need to pre-define the text size for each display element in a way that is aware of the display area size and the number of characters to be displayed without exceeding the limit, and can automatically display easily readable text on the image forming apparatus.
[0230] Furthermore, in displaying text, the image forming apparatus of this embodiment not only selects the character size to be contained in the display area, but also compresses and displays the width of characters exceeding the character size when the height is released. Therefore, when displaying text or numerical values in an area of a predetermined size, the image forming apparatus can improve readability by displaying as many characters as possible with the largest possible character size within a given display area. In addition, the image forming apparatus can always display at an appropriate size regardless of changes in text content, display area size, or different languages.
[0231] Furthermore, the image forming apparatus of this embodiment determines the display parameters (style information) of the text based on the display results of the display engine. Therefore, it can handle any language using the same processing. Thus, when translating and replacing text to implement a multilingual UI (User Interface), the image forming apparatus can adjust the display method of the text that is automatically displayed without exceeding the display area, even without strictly managing the number of characters (display width of the string), making language expansion easier.
[0232] [2. Second Implementation]
[0233] Next, the second embodiment will be described. The second embodiment is an implementation in which, in the width compression process of the first embodiment, when the character size of the text is set to a specified character size, the character size of the text is set to a smaller character size to perform width compression when the text is not included in the width compression.
[0234] In the width compression process of the first embodiment, the width compression determination process ( Figure 8 In steps S504 to S510, after returning the character size of the object element to the specified character size, a temporary drawing is performed to determine whether it exceeds the area. If it exceeds the area, the character size of the object element is set to an appropriate character size. However, even when it exceeds the area, sometimes the text is contained within the display area by slightly reducing the character size of the object element and compressing the width.
[0235] Therefore, in this embodiment, when it is determined in step S510 that the region is exceeded (step S510; Yes), the control unit 100 performs the following processing.
[0236] (1) Reduce the character size by 1 level (e.g., 1px unit) and use the width compression rate as the lower limit of the width compression rate for temporary drawing.
[0237] (2) Repeat (1) until it no longer exceeds the region.
[0238] (3) Set the character size of the object element to a size that does not exceed the area, and set the width compression rate of the object element to the lower limit of the width compression rate.
[0239] In this way, the control unit 100 can make the character size of the object element as large as possible, instead of displaying it with a suitable character size.
[0240] Furthermore, this processing method requires more temporary drawing operations before the display parameters are determined compared to the usual method. Therefore, the control unit 100 can perform the above-described processing if the workload of temporary drawing does not significantly affect the responsiveness of the screen display. In addition, to reduce the workload of temporary drawing processing, the control unit 100 can also increase or decrease the number of loops by increasing or decreasing the character size, or only perform the number of loops predetermined in (1). In this case, if the processing of only performing the predetermined number of loops (1) exceeds the limit, the control unit 100 can simply perform the processing. Figure 8 The processing in step S514 is sufficient.
[0241] Furthermore, when the above processing is performed, the administrator of the image forming apparatus 10 uses a value slightly larger than that described in the first embodiment as the lower limit of the width compression ratio, thereby adjusting the balance between character size and width compression ratio.
[0242] According to the image forming apparatus of this embodiment, by slightly reducing the character size of the text, it is possible to handle situations where width compression is possible.
[0243] [3. Third Implementation Method]
[0244] Next, the third embodiment will be described. The third embodiment is an implementation in the first embodiment that also performs multi-line region processing on text elements of a fixed line.
[0245] In the first embodiment, the processing of switching between multi-line regions and single-line fixed regions based on the automatic shrinking attribute of text elements was described. However, it is also possible to process text elements in a single-line fixed region within the processing of multi-line regions. For example, a content creator may limit the height of a text element's text region to the height of a single line, specifying a value that prevents the specified lower limit character size from exceeding two lines in height. This allows the display of a single-line fixed region to be processed even within the processing of multi-line regions. In this case, the content creator does not need to specify the applied automatic shrinking processing by specifying either a single-line fixed region or a multi-line region through the automatic shrinking attribute of the text element.
[0246] In this embodiment, the control unit 100 is in Figure 4 In the main processing shown, the processing in step S106 (determining whether the object element is a fixed row area) is not performed, and the multi-row area processing in step S108 is performed on all selected object elements.
[0247] In this way, the image forming apparatus of this embodiment can integrate automatic scaling into the processing of multiple line areas.
[0248] [4. Fourth Implementation Method]
[0249] Next, the fourth embodiment will be described. The fourth embodiment is an embodiment in which the object to which the display size is set is an object other than the text in the first embodiment, and the object is displayed in the display area at an appropriate size.
[0250] For example, in an object containing multiple constituent elements in a region (e.g., a rectangular region) of a defined shape including handwritten characters or graphic characters, the processing described in the first to third embodiments can also be applied if the constituent elements can be wrapped at any position.
[0251] For example, in Figure 7In step S400, the control unit 100 reduces the dimensions of the constituent element (height and width of the constituent element) by a predetermined percentage (e.g., 5%). This allows the control unit 100 to obtain the dimensions of the constituent element that are contained within the display area. Furthermore, the control unit 100 performs a width compression determination process to determine whether to display the object by compressing the width of the constituent element to accommodate it within the display area, or by reducing the dimensions of the constituent element to accommodate it within the display area. Based on the determination result, the control unit 100 can determine the size of the constituent element (dimension dimensions, width compression rate) and depict it in the display area.
[0252] Thus, according to the image forming apparatus of this embodiment, objects of appropriate size can be depicted (displayed) within the display area, even for objects other than text.
[0253] [5. Variations]
[0254] This invention is not limited to the embodiments described above, and various modifications can be made. That is, embodiments obtained by appropriately changing and combining technical means without departing from the scope of this invention are also included within the technical scope of this invention.
[0255] Furthermore, for ease of explanation, the above embodiments are described separately, but it is self-evident that they can be combined and implemented within the range that is technically possible. For example, the second and third embodiments can be combined. In this case, the image forming apparatus can perform multi-line region processing on a fixed line region and multiple line regions. In addition, even if it is determined that the width compression judgment process exceeds the region, the text can be contained in the display area by reducing the character size.
[0256] Furthermore, the programs operating in each device in the embodiments are programs that control the CPU and the like (programs that enable the computer to perform its functions) in a manner that achieves the functions described in the embodiments described above. Also, the information processed by these devices is temporarily stored in a temporary storage device (e.g., RAM) while being processed, and subsequently stored in various storage devices such as ROM (Read Only Memory), HDD, etc., and is read, modified, and written by the CPU as needed.
[0257] Here, the storage medium for storing the program can be any of the following: semiconductor media (e.g., ROM, non-volatile memory cards, etc.), optical recording media, magneto-optical recording media (e.g., DVD (Digital Versatile Disc), MO (Magneto Optical Disc), MD (Mini Disc), CD (Compact Disc), BD (Blu-ray Disc), etc.), magnetic recording media (e.g., magnetic tape, floppy disk, etc.). Furthermore, by executing the downloaded program, not only can the functions of the above-described embodiments be achieved, but the functions of the present invention can also be realized through joint processing with an operating system or other applications based on the instructions of the program.
[0258] Furthermore, when the program is distributed to the market, it can be stored and distributed on a portable recording medium, or transmitted to a server computer via a network such as the Internet. In this case, the server computer's storage device is naturally also included in this invention.
[0259] Explanation of reference numerals in the attached figures
[0260] 10 Image forming apparatus
[0261] 100 Control Department
[0262] 102 Image Processing Department
[0263] 120 Image Input Section
[0264] 130 Image forming unit
[0265] 140 Display Section
[0266] 150 Operations Department
[0267] 160 Storage Department
[0268] 162 Web Browser Applications
[0269] 164 Image Information Storage Area
[0270] 166 Setting Table
[0271] 190 Ministry of Communications
Claims
1. A display device, characterized in that, include: Display and control sections, The control unit is configured as follows: The object is temporarily placed in the display area of the display unit, and, Compare the size of the temporarily configured object with the size of the display area. The object is a multi-line string. When it exceeds the height of the display area, the character size of the multi-line string is reduced by a specified amount, increasing the number of characters per line and decreasing the number of lines. This determines whether the multi-line string can be contained within the display area. When it is determined that the reduced character size can accommodate the multi-line string within the display area, the width compression ratio is calculated based on the ratio of the specified character size to the reduced character size. The display size of the object is determined by applying the width compression ratio to the specified character size. The object is depicted within the display area according to the determined display size of the object.
2. The display device according to claim 1, characterized in that, When the control unit temporarily places the object in the display area, it configures it with non-display attributes.
3. The display device according to claim 1 or 2, characterized in that, The control unit calculates the display size of the object by taking the size of the area near the end of the display area as either the width or the height of the object.
4. The display device according to claim 1 or 2, characterized in that, The control unit determines the display size of the object contained within the display area by changing the display size of the multi-line string.
5. The display device according to claim 4, characterized in that, The control unit determines the display size of the object contained within the display area by changing the shape of the characters by reducing the display width of the characters in the multi-line string.
6. The display device according to claim 4, characterized in that, If the object cannot be contained within the display area even after changing the size of the multi-line string, the control unit omits a portion of the multi-line string when depicting it.
7. A control method for a display device, characterized in that, include: The steps to temporarily place an object in the display area; The step of comparing the size of the temporarily configured object with the size of the display area; The object is a multi-line string. When it exceeds the height of the display area, the step of determining whether the multi-line string can be contained within the display area is to reduce the specified character size of the multi-line string, thereby increasing the number of characters in each line and decreasing the number of lines. When it is determined that the reduced character size can accommodate the multi-line string within the display area, the step of calculating the width compression ratio based on the ratio of the specified character size to the reduced character size; The step of determining the display size of the object by applying the width compression ratio to the specified character size; The step of depicting the object within the display area according to the determined display size of the object.