Installation and running examples JavaScript via C++
Contents
[
Hide
Show
]Installing Aspose.Font for JavaScript
To install and use Aspose.Font for JavaScript from a ZIP archive, follow the following instructions:
- extract the files from the ZIP archive in some folder
- encrypt your *.lic file using ‘encrypt_lic.html’
- edit ‘settings.json’ and set up your settings.
- use AsposeFontforJS.js in your html:
1<!-- Load and initiate Aspose.Font for JavaScript -->
2<script type="text/javascript" async src="AsposeFontforJS.js"></script>
or using with Web Workers
1/* Web Worker*/
2const AsposeFontWebWorker = new Worker("AsposeFontforJS.js");
You can directly download a ZIP archive by clicking the ‘Download’ button or get a specific release.
If there is no web server installed, you can run the examples locally, using Python. So, if you are using Linux or Mac OS X, everything is ready on your system. If you are a Windows user, you can download the installation file from the Python home page:
Installing Python on Windows
- go to python.org
- in the download section, select the link to Python “3.xxx”
- at the bottom of the page, select the Windows x86 executable installer and download it
- after downloading the file, run it
- on the first page of the installer, select the “Add Python 3.xxx to PATH” checkbox
- click Install, and then click Close when the installation ends.
Run examples
- then go to the directory where to open the ZIP archive
- run in the console ‘python -m http.server 8080’
- then we open the browser and follow the link: ‘http://localhost:8080/example.html’
System Requirements
Aspose.Font for JavaScript supports the modern web browsers:
- Chrome
- Edge
- Firefox
- WebKit/Safari