A method, device and equipment for generating font handwriting of non-pressure-sensitive handwriting device

By obtaining and rendering the touch point sequence on the handwriting device, the simulation and generation of handwriting with the pen tip effect on the handwriting device is achieved, solving the problems of different thickness and depth of handwriting in existing equipment, and improving the fluency and aesthetics of writing.

CN119065529BActive Publication Date: 2025-03-18BEIJING SUWELL TECHNOLOGY CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411578625.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-03-18
Estimated Expiration
2044-11-07

AI Technical Summary

Technical Problem

Existing pressure-free handwriting equipment is difficult to simulate and generate handwriting with pen tip effect on electronic devices, affecting the fluency and aesthetics of writing.

Method used

By obtaining the first touch point sequence, the points whose touch point radius changes from small to large in their life cycle are rendered in real time to form a pen tip effect, and after the touch point life cycle ends, it is added to the second touch point sequence, rendering the points whose radius remains unchanged, forming a pen dry handwriting.

Benefits of technology

It realizes the simulation and generation of handwriting with pen tip effect on a pressure-free handwriting device, which improves the fluency and aesthetics of writing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065529B_ABST
    Figure CN119065529B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and equipment for generating font handwriting of a pressure-free handwriting device, the method comprising: obtaining a first touch point sequence, the first touch point sequence is formed by multiple touch points in a current handwritten stroke on the screen of the current pressure-free handwriting device; rendering the touch points in the first touch point sequence to the screen of the pressure-free handwriting device in real time; at the end of the life cycle of the touch points in the first touch point sequence, adding the touch points whose life cycle has ended to a second touch point sequence; rendering the touch points in the second touch point sequence to the screen of the pressure-free handwriting device in real time to form the pen stem handwriting of the current handwritten stroke; generating the target handwriting of the current handwritten stroke according to the pen stem handwriting and the pen tip handwriting formed by rendering the touch points in the first touch point sequence to the screen of the pressure-free handwriting device. The scheme of the present invention can simulate and generate handwriting with a pen tip effect on an electronic device without using a pressure-sensitive pen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer information technology processing technology, and in particular to a method, device and equipment for generating font handwriting of a pressure-free handwriting device. Background Art

[0002] With the popularity of smart devices, especially the widespread use of tablets and smartphones, users' demand for handwriting input is gradually increasing. Some devices are equipped with a pressure-sensitive pen, which can simulate the pressure to generate pen strokes. However, some devices do not have a pressure-sensitive pen, and generally simulate pen strokes by handwriting speed. The faster the speed, the sharper the pen stroke. However, this method will result in different thickness and depth of lines, affecting the fluency and aesthetics of writing. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method, device and equipment for generating font handwriting of a pressure-free handwriting device, which can simulate and generate handwriting with pen stroke effect on an electronic device without using a pressure-sensitive pen.

[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0005] A method for generating font handwriting of a pressure-free handwriting device, comprising:

[0006] Acquire a first touch point sequence, where the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on the screen of a current non-pressure-sensitive handwriting device, each touch point in the first touch point sequence has a respective life cycle, the life cycle length of each touch point is the same, and the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed within the respective life cycles;

[0007] Rendering the touch points in the first touch point sequence in real time onto the screen of the non-pressure-sensitive handwriting device;

[0008] When the life cycle of a touch point in the first touch point sequence ends, the touch point with the end of the life cycle is added to a second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value;

[0009] Rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem traces of the current handwriting stroke;

[0010] The target handwriting of the current handwriting stroke is generated according to the pen tip handwriting formed by rendering the pen stem handwriting and the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device.

[0011] Optionally, the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed within each life cycle, including:

[0012] During the life cycle of each touch point in the first touch point sequence, the radius of the touch point increases from a first value to a second value during a first time at the beginning of the life cycle to a second time at the end of the life cycle by linear interpolation.

[0013] Optionally, the touch point radius is determined according to the current running time of the touch point, the first value and the second value.

[0014] Optionally, the current running time of the touch point is equal to the difference between the current time and the time when the touch point was generated.

[0015] Optionally, for the multiple touch points in the first touch point sequence, from the first touch point in the first touch point sequence to the last touch point in the first touch point sequence, the current running time of each touch point gradually decreases, and the radius of each touch point decreases from the second value to the first value.

[0016] Optionally, the end of the life cycle of the touch points in the first touch point sequence is determined according to a progress value of the current running time of each touch point in the life cycle.

[0017] Optionally, rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem traces of the current handwriting strokes includes:

[0018] Rendering each touch point in the second touch point sequence onto the screen of the pressure-free handwriting device according to a preset spacing and a size of each touch point, to generate a pen stem trace of the current handwriting stroke.

[0019] The present invention also provides a device for generating font handwriting of a pressure-free handwriting device, comprising:

[0020] an acquisition module, configured to acquire a first touch point sequence, wherein the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on a screen of a current pressure-free handwriting device, each touch point in the first touch point sequence has a respective life cycle, the life cycle length of each touch point is the same, and within each life cycle, the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed;

[0021] A processing module is used to render the touch points in the first touch point sequence in real time onto the screen of the pressure-free handwriting device; when the life cycle of the touch points in the first touch point sequence ends, add the touch points whose life cycle ends to a second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value; render the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem handwriting of the current handwriting stroke; and generate the target handwriting of the current handwriting stroke according to the pen stem handwriting and the pen tip handwriting formed by rendering the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device.

[0022] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is run by the processor, the method as described above is executed.

[0023] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.

[0024] The above solution of the present invention includes at least the following beneficial effects:

[0025] The above scheme of the present invention obtains a first touch point sequence, which is formed by multiple touch points in the current handwriting stroke on the screen of the current pressure-free handwriting device, each touch point in the first touch point sequence has its own life cycle, and the life cycle length of each touch point is the same. The touch point radius of the touch points in the first touch point sequence increases from a first value to a second value according to a preset speed within their respective life cycles; the touch points in the first touch point sequence are rendered in real time on the screen of the pressure-free handwriting device; at the end of the life cycle of the touch points in the first touch point sequence, the touch points whose life cycle ends are added to the second touch point sequence, and the radius of each touch point in the second touch point sequence is the second value; the touch points in the second touch point sequence are rendered in real time on the screen of the pressure-free handwriting device to form the pen stem handwriting of the current handwriting stroke; according to the pen stem handwriting and the pen tip handwriting formed by rendering the touch points in the first touch point sequence on the screen of the pressure-free handwriting device, the target handwriting of the current handwriting stroke is generated. Therefore, handwriting with a pen tip effect can be simulated and generated on an electronic device without a pressure-sensitive pen. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a flowchart of a method for generating font handwriting of a pressure-free handwriting device according to an embodiment of the present invention;

[0027] Figure 2 1 is a schematic diagram of the touch point life cycle of the method for generating font handwriting of a pressure-free handwriting device according to an embodiment of the present invention;

[0028] Figure 3 Schematic diagram of handwriting form of a method for generating handwriting of a font of a pressure-free handwriting device according to an embodiment of the present invention;

[0029] Figure 4 It is a structural diagram of a device for generating fonts and handwritings for a pressure-free handwriting device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0031] like Figure 1 As shown, an embodiment of the present invention provides a method for generating font handwriting of a pressure-free handwriting device, comprising:

[0032] Step 11, obtaining a first touch point sequence, wherein the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on the screen of the current pressure-free handwriting device, each touch point in the first touch point sequence has its own life cycle, and the life cycle length of each touch point is the same, and the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value according to a preset speed within their respective life cycles;

[0033] Here, the touch point is a point generated when a finger slides on the screen of the pressure-free handwriting device, and a plurality of continuous touch points constitute a handwritten stroke.

[0034] In the present application, by presetting a life cycle of the same length for each touch point, the size of each touch point is controlled (when each touch point is within its life cycle, the radius will gradually increase; when it is outside the life cycle, the radius will no longer increase), thereby controlling the thickness of the generated stroke.

[0035] The life cycle is a preset value and can be determined according to actual needs. Preferably, in the present invention, the life cycle duration is set to 100 milliseconds.

[0036] In such Figure 2 In the life cycle diagram shown, the horizontal axis represents the finger touch direction, and the vertical axis represents time. As the finger slides, new touch points are added continuously, and the initial radius size of each new touch point is the first value. As time increases, each touch point is as follows. Figure 2During the life cycle of a column, the radius gradually increases, and stops increasing after reaching the second value. Since each touch point is generated at a different time, the radius of each touch point is different at the same time point.

[0037] Step 12, rendering the touch points in the first touch point sequence in real time onto the screen of the non-pressure-sensitive handwriting device;

[0038] Step 13, when the life cycle of a touch point in the first touch point sequence ends, adding the touch point with the end of the life cycle to a second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value;

[0039] Here, in the present invention, a first touch point sequence and a second touch point sequence are set, and when a finger slides across the screen, a newly generated touch point is added to the first touch point sequence by default.

[0040] Each touch point in the first touch point sequence is still in its respective life cycle, and each touch point is in a different stage of the life cycle according to a different generation time.

[0041] When a touch point in the first touch point sequence reaches the end of its life cycle, it is moved from the first touch point sequence to the second touch point sequence.

[0042] The radius of the touch points in the second touch point sequence no longer changes, and the radius of each touch point remains at the second value.

[0043] The second value is the radius value of the maximum pixel point in the preset handwriting, that is, the normal thickness value of the handwriting, which can be expressed as maxRadius. Preferably in the present invention, the second value maxRadius is set to 20 pixels. The first value is the radius value of the minimum pixel point in the preset pen tip, which can be expressed as minRadius. Preferably in the present invention, the first value minRadius is set to 0.5 pixels.

[0044] Step 14, rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to generate the pen stem traces of the current handwriting stroke;

[0045] The touch points in the second touch point sequence are all touch points that have grown to their life cycle, and their radius is uniformly the second value. The touch points in the second touch point sequence are rendered on the screen according to the path of finger sliding, that is, presented as the stem part of a stroke, that is, the main part of the stroke.

[0046] In such Figure 3 In the stroke diagram shown, the touch points in the second touch point sequence present the effect of the pen stem segment labeled ②.

[0047] Since the touch points in the first touch point sequence are all within their life cycle, their radius has not grown to the maximum value. Therefore, according to the different generation time of each touch point, it is presented as follows: Figure 3 The effect of the number ① is shown. If the touch point is generated later, the radius is small, and if it is generated earlier, the radius is large. Finally, the pen tip effect from thick to thin is presented.

[0048] Step 15, generating target handwriting of the current handwriting stroke according to the pen tip handwriting formed by rendering the pen stem handwriting and the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device.

[0049] In an optional embodiment of the present invention, the touch points in the first touch point sequence increase their radius from a first value to a second value at a preset speed within their respective life cycles, including:

[0050] During the life cycle of each touch point in the first touch point sequence, the radius of the touch point increases from a first value to a second value during a first time at the beginning of the life cycle to a second time at the end of the life cycle by linear interpolation.

[0051] In this embodiment, during the life cycle of the touch point, the touch point radius gradually increases from the first value minRadius to the second value maxRadius. This process can be implemented by linear interpolation to ensure that the touch point radius increases smoothly at a preset speed during the life cycle.

[0052] Specifically, the touch point radius is determined according to the current running time of the touch point, the first value and the second value, wherein the current running time of the touch point is equal to the difference between the current time and the time when the touch point was generated. The touch point radius can be expressed as:

[0053] curRadius = minRadius + elapsedTime / duration* (maxRadius-minRadius)

[0054] Where curRadius is the radius of the touch point at the current time, elapsedTime is the current running time, that is, the time after the touch point joins the first queue, and duration is the life cycle.

[0055] In the present invention, elapsedTime / duration is recorded as a progress value, that is, the progress of the touch point in its respective life cycle.

[0056] In an optional embodiment of the present invention, for multiple touch points in the first touch point sequence, from the first touch point in the first touch point sequence to the last touch point in the first touch point sequence, the current running time of each touch point gradually decreases, and the radius of each touch point decreases from the second value to the first value.

[0057] In this embodiment, Figure 3 As shown, in the pen stroke stage of the first touch point sequence rendering, the first touch point in the first touch point sequence is generated the earliest, has the largest progress value, and has the largest touch point radius. The last touch point in the first touch point sequence is generated the latest, has the smallest progress value, and has the smallest radius. The longer the life cycle is set, the longer it takes for minRadius to reach maxRadius, and the longer the pen stroke effect. Therefore, the generation of pen stroke effects of different lengths can be controlled by adjusting the size of the life cycle.

[0058] In an optional embodiment of the present invention, the end of the life cycle of the touch points in the first touch point sequence is determined according to a progress value of the current running time of each touch point in the life cycle.

[0059] In this embodiment, when the time when the touch point enters the first queue (i.e., the touch point generation time) is equal to the preset life cycle value, the progress value p is equal to 1, which means that the life cycle of the touch point ends, and the touch point is moved from the first queue to the second queue.

[0060] In an optional embodiment of the present invention, step 14 may include:

[0061] Step 141: Render each touch point in the second touch point sequence onto the screen of the pressure-free handwriting device according to a preset spacing and a size of each touch point, to generate a pen stem trace of the current handwriting stroke.

[0062] In this embodiment, Figure 2 As shown, each touch point is generated in sequence according to the finger sliding trajectory, and the touch points are spaced at a preset interval. When the radius of each touch point is greater than the interval value, multiple touch points are connected into a smooth line, which presents a smooth handwriting effect when rendered on the screen.

[0063] In the above-mentioned embodiment of the present invention, when a finger slides on the screen, multiple touch points are generated at a preset interval along with the movement of the finger, each touch point is marked with its own generation time, and each touch point is preset with the same life cycle.

[0064] When a new touch point is generated, the radius of the touch point is the first value (the preset minimum value), and the newly generated touch point is added to the first queue by default. At this time, the other touch points in the first queue calculate their own progress values, that is, their own running time divided by the life cycle. According to their respective progress values, the radius of their respective touch points is calculated, and the touch points of the radius size are rendered on the screen in real time.

[0065] When the progress value of a touch point in the first queue is 1, that is, it reaches the end of its life cycle, the touch point with the progress value of 1 is added to the second queue.

[0066] That is to say, the radius of each touch point changes within its respective life cycle. The earlier the touch point is generated, the greater its progress value and radius are, and accordingly, it reaches the end of its life cycle earlier.

[0067] Each touch point in the first queue reaches the end of its life cycle in sequence according to the order of its generation time, and is added to the second queue in sequence.

[0068] The progress value of each touch point in the second queue is greater than or equal to 1, and the radius of each touch point in the second queue no longer changes but remains at the second value.

[0069] Based on the above principle, when a finger draws a stroke on the screen, and the time of drawing the stroke is greater than the preset life cycle, the touch points in the first half of the stroke have reached the end of the life cycle, that is, the touch points in the second queue, and the touch points in the second queue are rendered as lines of equal thickness. The second half of the stroke, that is, the newly generated touch points in the first queue, are rendered as pen strokes from thick to thin according to the order of their generation time.

[0070] The implementation process of the above method is further described below with a specific embodiment: Example

[0071] 1. When the finger is pressed, the touch point is added to the first queue, and the timestamp startTime is added to the touch point. The current time is recorded as the starting point of the life cycle. The initial radius of the touch point is the configured minimum radius value.

[0072] 2. When the finger moves, the touch point is obtained and added to the first queue in the manner of 1. The historical points added previously are polled and calculated. The initial timestamp recorded for each point is subtracted from the current timestamp to obtain the running time of the touch point dTime=curTime-startTime, where dTime is the running time of the touch point and curTime is the current time. Divide dTime by duration (life cycle) to find the progress value p of the current time in the life cycle of each point. If the p value is in the range of 0-1, multiply p by (maxRadius-minRadius) to find the radius of the current point; if the value is greater than or equal to 1, the life cycle of the touch point ends, it is removed from the first queue, added to the second queue, and the point radius is set to maxRadius. In this way, as the finger moves and the position changes, the first queue continuously adds touch points. As time goes by, the points in the first queue continuously die and move into the second queue, thus generating two queues. At this time, when the first queue is rendered on the screen, a row of regular black dots from large to small will be displayed. When the second queue is rendered on the screen, dots of equal thickness connected to the first queue will be displayed, and the pen stroke effect will be presented on the screen in real time.

[0073] 3. When the finger is lifted, all the points in the first queue are added to the second queue. At this time, the first queue is completely invalid, and all the points in the second queue are the path points of the final handwriting. When drawn on the screen, it will be a silky and sharp pen stroke effect.

[0074] The above method of the present invention no longer relies on pressure sensing, but calculates the size of each point by recording the life cycle of each point, and renders it on the screen in real time, thereby achieving a natural and smooth writing experience.

[0075] like Figure 4 As shown, the embodiment of the present invention further provides a device 40 for generating font handwriting of a non-pressure-sensitive handwriting device, comprising:

[0076] an acquisition module 41, configured to acquire a first touch point sequence, wherein the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on the screen of a current non-pressure-sensitive handwriting device, each touch point in the first touch point sequence has a respective life cycle, and the life cycle length of each touch point is the same, and within each life cycle, the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed;

[0077] The processing module 42 is used to render the touch points in the first touch point sequence in real time onto the screen of the pressure-free handwriting device; when the life cycle of the touch points in the first touch point sequence ends, the touch points whose life cycle ends are added to the second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value; the touch points in the second touch point sequence are rendered in real time onto the screen of the pressure-free handwriting device to form the pen stem handwriting of the current handwriting stroke; and the target handwriting of the current handwriting stroke is generated according to the pen stem handwriting and the pen tip handwriting formed by rendering the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device.

[0078] Optionally, the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed within each life cycle, including:

[0079] During the life cycle of each touch point in the first touch point sequence, the radius of the touch point increases from a first value to a second value during the time from the start of the life cycle to the end of the life cycle by using a linear interpolation method.

[0080] Optionally, the touch point radius is determined according to the current running time of the touch point, the first value and the second value.

[0081] Optionally, the current running time of the touch point is equal to the difference between the current time and the time when the touch point was generated.

[0082] Optionally, for the multiple touch points in the first touch point sequence, from the first touch point in the first touch point sequence to the last touch point in the first touch point sequence, the current running time of each touch point gradually decreases, and the radius of each touch point decreases from the second value to the first value.

[0083] Optionally, the end of the life cycle of the touch points in the first touch point sequence is determined according to a progress value of the current running time of each touch point in the life cycle.

[0084] Optionally, rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem traces of the current handwriting strokes includes:

[0085] Rendering each touch point in the second touch point sequence onto the screen of the pressure-free handwriting device according to a preset spacing and a size of each touch point to form a pen stem trace of the current handwriting stroke.

[0086] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0087] The embodiment of the present invention further provides a computing device, comprising: a processor, a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0088] The embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0089] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0090] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0091] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0092] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0093] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0094] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0095] In addition, it should be pointed out that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understandable that all or any steps or components of the method and apparatus of the present invention can be implemented in hardware, firmware, software or a combination thereof in any computing device (including processors, storage media, etc.) or a network of computing devices, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0096] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0097] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for generating font handwriting of a pressure-free handwriting device, characterized in that: include: Acquire a first touch point sequence, where the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on the screen of a current non-pressure-sensitive handwriting device, each touch point in the first touch point sequence has a respective life cycle, the life cycle length of each touch point is the same, and the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed within the respective life cycles; Rendering the touch points in the first touch point sequence in real time onto the screen of the non-pressure-sensitive handwriting device; When the life cycle of a touch point in the first touch point sequence ends, the touch point with the end of the life cycle is added to a second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value; Rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem traces of the current handwriting stroke; Generate target handwriting of the current handwriting stroke according to the pen tip handwriting formed by rendering the pen stem handwriting and the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device; The touch points in the first touch point sequence increase their radius from a first value to a second value at a preset speed within their respective life cycles, including: During the life cycle of each touch point in the first touch point sequence, the radius of the touch point increases from a first value to a second value during a first time at the beginning of the life cycle to a second time at the end of the life cycle by a linear interpolation method; Wherein, the touch point radius is determined according to the current running time of the touch point, the first value and the second value; Wherein, the current running time of the touch point is equal to the difference between the current time and the time when the touch point was generated; As the finger slides, new touch points are continuously added, and the initial radius of each new touch point is the first value; as time goes by, the radius of each touch point gradually increases during its life cycle, and no longer increases after it increases to the second value; since each touch point is generated at a different time, the radius of each touch point is different at the same time point.

2. The method for generating font handwriting of a pressure-free handwriting device according to claim 1, characterized in that: For the multiple touch points in the first touch point sequence, from the first touch point in the first touch point sequence to the last touch point in the first touch point sequence, the current running time of each touch point gradually decreases, and the radius of each touch point decreases from the second value to the first value.

3. The method for generating font handwriting of a pressure-free handwriting device according to claim 1, characterized in that: The end of the life cycle of the touch points in the first touch point sequence is determined according to the progress value of the current running time of each touch point in the life cycle.

4. The method for generating font handwriting of a pressure-free handwriting device according to claim 1, characterized in that: Rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to generate the pen stem traces of the current handwriting strokes, including: Rendering each touch point in the second touch point sequence onto the screen of the pressure-free handwriting device according to a preset spacing and a size of each touch point, to generate a pen stem trace of the current handwriting stroke.

5. A device for generating font handwriting of a pressure-free handwriting device, characterized in that: include: an acquisition module, configured to acquire a first touch point sequence, wherein the first touch point sequence is formed by a plurality of touch points in a current handwriting stroke performed on a screen of a current pressure-free handwriting device, each touch point in the first touch point sequence has a respective life cycle, the life cycle length of each touch point is the same, and within each life cycle, the touch point radius of the touch points in the first touch point sequence increases from a first value to a second value at a preset speed; A processing module, used for rendering the touch points in the first touch point sequence in real time onto the screen of the pressure-free handwriting device; When the life cycle of a touch point in the first touch point sequence ends, the touch point with the end of the life cycle is added to a second touch point sequence, and the radius of each touch point in the second touch point sequence is a second value; Rendering the touch points in the second touch point sequence in real time onto the screen of the pressure-free handwriting device to form the pen stem traces of the current handwriting stroke; Generate target handwriting of the current handwriting stroke according to the pen tip handwriting formed by rendering the pen stem handwriting and the touch points in the first touch point sequence onto the screen of the pressure-free handwriting device; The touch points in the first touch point sequence increase their radius from a first value to a second value at a preset speed within their respective life cycles, including: During the life cycle of each touch point in the first touch point sequence, the radius of the touch point increases from a first value to a second value during a first time at the beginning of the life cycle to a second time at the end of the life cycle by a linear interpolation method; Wherein, the touch point radius is determined according to the current running time of the touch point, the first value and the second value; Wherein, the current running time of the touch point is equal to the difference between the current time and the time when the touch point was generated; As the finger slides, new touch points are continuously added, and the initial radius of each new touch point is the first value; as time goes by, the radius of each touch point gradually increases during its life cycle, and no longer increases after it increases to the second value; since each touch point is generated at a different time, the radius of each touch point is different at the same time point.

6. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 4 is performed.

7. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Handwriting thickness change control method and system with stroke effect

    CN115981489A

  • Method and apparatus for presenting handwriting, and interaction tablet computer and storage medium

    WO2022242011A1