Text rendering and layout method, apparatus, equipment, and storage medium

A layout method and text technology, applied in the field of text rendering and layout, can solve the problems of time-consuming rendering

Active Publication Date: 2019-01-04
GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the paragraph where the edited text is located is long, or the paragraph contains a lot of artistic words, it may cause time-consuming rendering problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Text rendering and layout method, apparatus, equipment, and storage medium
  • Text rendering and layout method, apparatus, equipment, and storage medium
  • Text rendering and layout method, apparatus, equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Figure 1a It is a flow chart of a text rendering and layout method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where part of the text in the text box is edited. This method can be rendered by the text rendering and layout device provided by the embodiment of the present invention To execute, the device can be implemented in the form of software and / or hardware, and the device can be integrated into a text rendering and layout device. refer to Figure 1a , the method may specifically include the following steps:

[0029] S110. Obtain an operation type of an editing operation received by the text box, wherein the operation type includes at least one of the following: an input operation, a paste operation, a delete operation, and an attribute modification operation.

[0030] Specifically, the text box receives the edit operation input by the user, and the operation type corresponding to the edit operation includes at least ...

Embodiment 2

[0038] figure 2 It is a flow chart of a text rendering and layout method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment is concerned with "determining the target text and the region to be operated, wherein the target text and the region to be operated The operation area is optimized according to the operation type, the editing object corresponding to the editing operation, and the associated text of the editing object. refer to figure 2 , the method may specifically include the following steps:

[0039] S210. Obtain an operation type of an editing operation received by the text box, wherein the operation type includes at least one of the following: an input operation, a paste operation, a delete operation, and an attribute modification operation.

[0040] S220. If the operation type is an input operation or a paste operation, determine a first editing object corresponding to the input operation or paste operation. ...

Embodiment 3

[0056] image 3 It is a flow chart of a text rendering and layout method provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment "determines the target text and the region to be operated, wherein the target text and the region to be operated The operation area is optimized according to the operation type, the editing object corresponding to the editing operation, and the associated text of the editing object. refer to image 3 , the method may specifically include the following steps:

[0057] S310. Obtain an operation type of an editing operation received by the text box, wherein the operation type includes at least one of the following: an input operation, a paste operation, a delete operation, and an attribute modification operation.

[0058] S320. If the operation type is a delete operation, determine a third editing object corresponding to the delete operation.

[0059] Specifically, if it is determined that the operati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a text rendering and layout method, an apparatus, equipment and a storage medium. The method comprises the following steps: obtaining an operation type of anediting operation received by a text box, wherein, the operation type comprises at least one of the following: an input operation, a paste operation, a delete operation and a modification attribute operation; determining the target text and the area to be manipulated, wherein the target text and the to-be-operated area are determined according to the operation type, the editing object corresponding to the editing operation and the associated text of the editing object, the target text is located in the text box, and the to-be-operated area is located in the text box area formed by the text box; the target text being rendered, and the layout of the target text being displayed in the region to be operated. When only part of the text in the text box is edited, problems such as time-consumingrepeated rendering and/or layout caused by rendering and/or layout of all the text in the text box are avoided.

Description

technical field [0001] The present invention relates to the technical field of text rendering and layout, in particular to a text rendering and layout method, device, device and storage medium. Background technique [0002] A text box usually refers to a movable and resizable text or graphic container. Using a text box, several text blocks can be placed on a page, or the text can be arranged in a different direction from other text in the document. [0003] During the process of realizing the present invention, the inventors found at least the following problems in the prior art. The text in the text box in the existing smart tablet, every time there is an editing operation for the text, it will trigger the redrawing of the paragraph where the edited text in the text box is located. If the editing operation affects other paragraphs, it may also Other paragraphs need to be repainted. When the paragraph where the text to be edited is long, or the paragraph contains a lot of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/24
CPCG06F40/166
Inventor 牛彦杰
Owner GUANGZHOU SHIYUAN ELECTRONICS CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products