selfthinker / dokuwiki_plugin_fontface Goto Github PK
View Code? Open in Web Editor NEWDokuWiki Plugin to embed fonts (via uploaded fonts or Google Fonts)
Home Page: https://www.dokuwiki.org/plugin:fontface
DokuWiki Plugin to embed fonts (via uploaded fonts or Google Fonts)
Home Page: https://www.dokuwiki.org/plugin:fontface
If a non-bold variant of a font gets uploaded right now, the bold will only be a faux bold.
The rich text editor introduces whitespace into {{brackets}} and causes other plugins not to render. e.g. a page with the Wikipedia plugin {{wp>article}} will look like { { wp>article } } after editing the page. Can the editor ignore text in brackets?
Check if it's possible to add the CSS/JS to the dispatcher. If yes, add all except external files.
Using the latest Dokuwiki and your plugin, there's a difference in what Google says should be used and what the plugin does.
I couldn't paste the text, so I've removed < and >
The plugin does this:
<link type="text/css" rel="stylesheet" media="screen" href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:wght@300" /
>
Google says this:
<link rel="preconnect" href="https://fonts.gstatic.com"
>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300&display=swap" rel="stylesheet"
>
I don't know what the actual difference is to Google, but I'm having a hard time to get the fonts I want ๐ธ
Also, notice the /css2 in Google's output vs /css in the plugin's.
Maybe something worthwhile looking at. Thanks for your work!
Add Google WebFont Loader [http://code.google.com/apis/webfonts/docs/webfont_loader.html] to the techniques. This will allow adding several external services.
Installed on Weatherwax and immediately get this error at the top of the plugins screen.
First check which techniques show the font when printed in which browser. Then implement, probably only partially?
Initialising typeface.js to overcome Flash Of Unstyled Content in IEs 6, 7 and 8 is currently not working. This was not implemented because the event that triggers the insertion (TPL_CONTENT_DISPLAY) is too early and causes IE6 and IE7 to crash.
Hi, Using this plugin loads the font in the head and raise an issue regarding page speed.
Is it possible to to set a settings to load it async or deferred?
Thanks,
Yehuda
I've managed to load a fontset from fontsquirrel and place it into the fontdir. But to get the appearance it want, i need to hack the CSS of my template. Espacially for fontsize, fontcolor and lineheight.
These settings should be done with fontface plugin to prevent hacking the templates css.
Currently the plugin only allows to embed one single font. Embedding more fonts for different types of headings might be desirable.
I used it with DokuWiki Greebo.
It doesn't work with the new version.
Thanks.
It would be more user-friendly if users could upload the needed font files through an admin interface.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.