FPDF add_font python - Bangla Font file xxx.ttf cannot be embedded due to copyright restrictions - runtime-error

from fpdf import FPDF
pdf.add_font('SolaimanLipi','','filename.ttf', uni=True)
RuntimeError: ERROR - Font file /content/drive/SolaimanLipi.ttf cannot be embedded due to copyright restrictions.
I have using python fpdf to write bangla in a pdf. But while i use SolaimanLipi font it shows me this error. How can i solve this?

Related

after effects import output and render settings by command line

I want to use aerender in docker to render multiple videos.
I was able to install after effects and it works so far.
But unfortunately I have a problem: I want to use a custom render- and output module template.
Normally, with gui I would just import it, but I don't know if there is a command for command line to import it, so I tried an alternative:
I copied these settings:
Adobe After Effects 15.1 Prefs-indep-output.txt
Adobe After Effects 15.1 Prefs-indep-render.txt
from my normal computer (from path .../AppData/Adobe/After Effects/15.1) to the config folder on the docker image
But whenever I try to run aerender, I get the following error:
aerender version 15.1.1x12 After Effects warning: Invalid menu operation.
After Effects can't continue: unexpected failure during
application startup
Is there any solution for this problem?

Encoding issue R LSA

dosen't lsa in r support foreign language
my code
library("lsa")
Loading required package: SnowballC
trm = textmatrix("s/")
the error
[lsa] - could not open file s/s.txt due to encoding problems of the file.
or am doing something wrong
the file which produces error is the source page of amazon
You could try loading the file up in something like Notepad++, then save it as a different encoding. There are also utilities that will convert it, I use one in Git-bash sometimes called iconv. You have to install Git to get access to it.

RStudio and Knit: Unable to display latex fonts

When I knit a document to HTML, I get the following error messages:
Loading [MathJax]/jax/output/HTML-CSS/imageFonts.js
File failed to load: http://127.0.0.1:37362/html_preview/mathjax/jax/output/HTML-CSS/imageFonts.js
Loading Web-Font TeX/Math/Italic
File failed to load: http://127.0.0.1:37362/html_preview/mathjax/fonts/HTML-CSS/TeX/png/imagedata.js
I am also unable to view it Rpubs view internet browser.
I've tried reinstalling knitr, mathjax fonts, etc. Still unable to see latex math.
I'm using xubuntu.
NOTE: Viewing the converted HTML file directly in chromium and firefox works fine, however.

How to use QCA library in Qt

I have used QCA (qca-2.0.1-mingw) library for encryption.
I have searched some code and write into the application. But it does not support the AES encryption standard.
e.g
QCA::supportedFeatures();
QCA::isSupported("aes128-cbc-pkcs7");
shows the o/p
("random", "md5", "sha1", "keystorelist")
false
Why AES is not supported ?
Thanx.. Frank and elmigranto
now, i have download qca-ossl-2.0.0-beta3 form link and also install the OpenSSl(Win32OpenSSL-1_0_0j.exe).then i build it by follows this link
configwin rd
Configuring for release and debug, dynamic
Wrote conf_win.pri
qmake
C:\qca-ossl-2.0.0-beta3>qmake
'qmake' is not recognized as an internal or external command,
operable program or batch file.
Also when i build the qca-ossl.pro file it shows o/p as:
c:\qca-ossl-2.0.0-beta3\qca-ossl.pro:17: warning: Unable to find file for inclusion winlocal.prf
what to do next? pls help me guys..

Error: only one source is allowed in the filespec - Related SO answer does not work

I'm getting the following error, which works fine in Flash Builder 4.5 but does not work with Flex SDK
C:\FlexSDK\bin>mxmlc -static-link-runtime-shared-libraries=false
-use-network=fa lse "C:\workspace\gui\Mill_UI.mxml" -output "C:\workspace\gui\out\op.swf"
Loading configuration file
C:\FlexSDK\frameworks\flex-config.xml
Loading configuration file> C:\workspace\gui\Mill_UI-config.xml Adobe Flex Compiler (mxmlc)
Version 4.6.0 build 23201 Copyright (c) 2004-2011 Adobe Systems, Inc.
All rights reserved.
Error: only one source is allowed in the filespec
Use 'mxmlc -help' for information about using the command line.
C:\FlexSDK\bin>
I tried the remedy suggested for a similar issue here, I added quotes,modified the folder structure so there are no spaces, but I still get the error
I also created a project specific config file using -dump-config and modified the paths as well but to no avail
Thanks !

Resources