GithubHelp home page GithubHelp logo

dubas-pro / ext-dubas-google-fonts Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 4.19 MB

Add most popular fonts from Google Fonts to your EspoCRM with this extension and use them in your PDF Templates!

Home Page: https://devcrm.it/google-fonts

License: GNU General Public License v3.0

JavaScript 19.29% PHP 71.76% Shell 1.16% Makefile 7.79%
espocrm espocrm-extension

ext-dubas-google-fonts's Introduction

Google Fonts Extension for EpoCRM

Feel free to browse the source, look at open issues and keep track of development.

Product page: https://devcrm.it/google-fonts

Documentation: https://docs.dubas.pro/extensions/google-fonts/

Requirements

The extension works only with Tcpdf PDF engine. Since EspoCRM 8.1.0 Tcpdf is not included in EspoCRM by default. You can install it from GitHub.

Development

To setup development environment please follow the steps below:

  1. Clone this repository;
  2. Run make full to setup full development environment;

Building extension package

To build extension package run make package command.

Support

This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core issues only.

Need help? Please write us an email at [email protected].

Support requests in issues on this repository will be closed on sight.

How to report a bug

The issue tracker is the preferred channel for bug reports.

License

Please see License File for more information.

ext-dubas-google-fonts's People

Contributors

arkadiyasuratov avatar emillod avatar

Watchers

 avatar  avatar

Forkers

t0b1hh

ext-dubas-google-fonts's Issues

Adding own fonts issues

EspoCRM v7.3.4

  1. If we follow the instructions on adding our own fonts, we still need to add some files to the application folder, not only in custom one. Otherwise, we get the following errors in the log:
[2023-03-27 09:40:36] WARNING: E_WARNING: scandir(application/Espo/Modules/Crm/Resources/fonts): Failed to open directory: No such file or directory {"code":2,"message":"scandir(application/Espo/Modules/Crm/Resources/fonts): Failed to open directory: No such file or directory","file":"/var/www/html/espocrm/custom/Espo/Modules/DubasGoogleFonts/Tools/Pdf/Tcpdf/ApplyFonts.php","line":107} []
[2023-03-27 09:40:36] WARNING: E_WARNING: scandir(): (errno 2): No such file or directory {"code":2,"message":"scandir(): (errno 2): No such file or directory","file":"/var/www/html/espocrm/custom/Espo/Modules/DubasGoogleFonts/Tools/Pdf/Tcpdf/ApplyFonts.php","line":107} []
[2023-03-27 09:40:36] WARNING: E_WARNING: foreach() argument must be of type array|object, bool given {"code":2,"message":"foreach() argument must be of type array|object, bool given","file":"/var/www/html/espocrm/custom/Espo/Modules/DubasGoogleFonts/Tools/Pdf/Tcpdf/ApplyFonts.php","line":108} []
  1. When everything is correctly added even in the application folder, when trying to test Print to PDF feature, we get the following error in the developer browser console:
<strong>TCPDF ERROR: </strong>Could not include font definition file: notosansbengali.

That is, as far as I understand, we also need to add additional fonts to vendor/tecnickcom/tcpdf/fonts.

Dompdf engine support

I want to clarify that this is more of a future request than an issue.

It would be desirable to add support for the Dompdf PDF engine, since at the moment on the master version of EspoCRM (in which the choice of PDF engines is already available), when we select the Dompdf engine in the Administration > Settings, fonts from the Dubas Google Fonts extension are not displayed when choosing a font in PDF Template editing and viewing mode.

New fonts

Source: https://forum.espocrm.com/forum/extensions/74278-new-extension-google-fonts-in-pdf-templates-?p=85469#post85469


https://fonts.google.com/specimen/Sofia/

I'm looking for something that we can use for 'email' signature fancy letter.

Yours sincerely,
Espcrm


Some font that I think could fit is these, but there so many font that I'm getting lazy to check

https://fonts.google.com/specimen/Sacramento
https://fonts.google.com/specimen/Ms+Madi
https://fonts.google.com/specimen/Parisienne```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.