Closed (outdated)
Project:
@font-your-face
Version:
7.x-2.x-dev
Component:
Fontdeck (provider)
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2013 at 00:10 UTC
Updated:
8 Aug 2020 at 14:11 UTC
Jump to comment: Most recent
Comments
Comment #1
mstrelan commentedComment #2
BarisW commentedA better approach might be to make it protocol independent.
If I check what Fontdeck suggest themselves, they do it without http or https:
<link rel="stylesheet" href="//f.fontdeck.com/s/css/ScoVjeoYB6zuTej+cVkW6updESk/DOMAIN_NAME/29315.css" type="text/css" />Comment #3
Drave Robber commented@BarisW: this is exactly what this patch does - it replaces
http://orhttps://with//. :)btw, where does Fondeck suggest this (link)?
Comment #4
BarisW commentedAh my fault. THen it looks good. However, does it need a hook_update() to re-import all fontdeck fonts?
You can find info here: http://fontdeck.com/support/tutorial (HTML method)
Comment #5
Drave Robber commentedThe reason I'm a bit more cautious about this is Edge Fonts similarly recommends protocol-independent URLs "for most cases", but then goes on to tell there might be exceptions. Well, "local file-based development" isn't the case with Drupal.
In edge_fonts.module, protocol-independent is the default setting, but you can switch to "ask the server".
Comment #6
Drave Robber commentedPotentially related: #1891820: fontdeck_get_domain() - stripping www is not necessary
I'll try to set up a sandbox to play with both these over the weekend.
Comment #7
neslee canil pinto