Javascript-how to generate the stroke font and save it as an image, which can be solved using canvas or php?

Source: Internet
Author: User
Tags what php
The stroke style is as follows: {code...} is also the stroke effect, but after you click print, the stroke style disappears...

Stroke size can be set

  1. Currently, the QR code is automatically generated in the background, and text is also automatically generated. it has been integrated in the center of the image by css.

The code structure is as follows:
  

I am a stroke font

The style of print.css is as follows:

.font-border{    text-shadow: 0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff;}    

The style is also the stroke effect, but after clicking print, the stroke style disappears (Google browser version 52.0.2743.60 (64-bit ))
Does printing not support text-shadow?

2. later I found http://www.liantu.com/, and found that they are the combination of canvasreal images and texts.
However, they do encryption, and after decryption, they do not understand. the variables are all single letters.
Can I wrap up the image and text elements I set above and their locations with canvas? then I click download to download the image to a local device.

3. or what php plug-in can be used to achieve stroke?

Reply content:

Stroke size can be set

  1. Currently, the QR code is automatically generated in the background, and text is also automatically generated. it has been integrated in the center of the image by css.

The code structure is as follows:
  

I am a stroke font

The style of print.css is as follows:

.font-border{    text-shadow: 0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff,0 0 6px #fff;}    

The style is also the stroke effect, but after clicking print, the stroke style disappears (Google browser version 52.0.2743.60 (64-bit ))
Does printing not support text-shadow?

2. later I found http://www.liantu.com/, and found that they are the combination of canvasreal images and texts.
However, they do encryption, and after decryption, they do not understand. the variables are all single letters.
Can I wrap up the image and text elements I set above and their locations with canvas? then I click download to download the image to a local device.

3. or what php plug-in can be used to achieve stroke?

Draw imagescanvasThe text is the same,canvasSupports text stroke.

Example:
Https://jsfiddle.net/imys/yjhs8rz4/

Php to generate a font Image. The stroke font is related to the font file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.