Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Proper Support for Fonts #2481

Closed
wants to merge 3 commits into from
Closed

Adding Proper Support for Fonts #2481

wants to merge 3 commits into from

Conversation

shefik
Copy link
Contributor

@shefik shefik commented May 29, 2015

Adding support for page var "font", and correcting error, where @import was not supporting remote URLs.

Example use in a template:

{pageaddvar name='font' value='//fonts.googleapis.com/css?family=Oswald:300,400,700'}

Any remote font URL can be used. It does not need to be a Google font. All fonts will be loaded before other stylesheets, since it is required for fonts to always load first for proper styling.

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
Refs tickets -
License MIT
Doc PR -
Changelog updated no

@craigh
Copy link
Member

craigh commented Jun 1, 2015

what was the old solution? why doesn't it work anymore?

@craigh craigh added the Feature label Jun 1, 2015
@Guite Guite added this to the 1.4.1 milestone Jun 6, 2015
@craigh
Copy link
Member

craigh commented Jul 28, 2015

what was the old solution? why doesn't it work anymore?

ping @shefik response?

// process include
self::readfile($contents, $url, $ext);

if (!is_readable($url)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this check for whether it is a remote url? Can this be done in a cheaper way avoiding file system access?

@craigh craigh closed this Oct 25, 2015
@shefik shefik deleted the page_var_font branch September 25, 2016 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants