Page 1 of 1

Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 1:06 am
by bzark
In the file admin/view/stylesheet/bootstrap.css you have this selector:

Code: Select all

@at-root {
  @font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/bootstrap/glyphicons-halflings-regular.eot');
    src: url('../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/bootstrap/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/bootstrap/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/bootstrap/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg'); } }
But the path for the fonts is incorrect. Shouldn't it be ../javascript/bootstrap/fonts/?

Re: Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 4:39 am
by IP_CAM
Well, it takes the URL, based on it's own 'Position':
/view/stylesheet/bootstrap.css[/b]
meaning, that
../fonts/bootstrap/...
would then be linked like:
/view/fonts/bootstrap/...

But such Files with Glyphicons Stuff can be found anywhere, depending
on Extensions installed, even FontAwesome Subs are usually placed in
multiple Sections, for some unknown reason. :laugh:

I have the same Glyphicon-Linking in my Merkent Bootstrap Theme Stylesheet:

Code: Select all

shop/catalog/view/theme/default/stylesheet/stylesheet.css
like:

Code: Select all

@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot)
and it links exactly the same way:

Code: Select all

shop/catalog/view/theme/default/fonts/glyphicons-halflings-regular.eot
So, if it works, let it do the Job, because, as I found out, not all files, named
equal, contain equal content, Dev's sometimes do strange things ... or remove,
or even edit, what's not really required in/for their own Extension!
Good Luck! ;)
Ernie

Re: Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 4:43 am
by bzark
IP_CAM wrote:
Wed Oct 11, 2017 4:39 am
Well, it takes the URL, based on it's own 'Position':
/view/stylesheet/bootstrap.css[/b]
meaning, that
../fonts/bootstrap/...
would then be linked like:
/view/fonts/bootstrap/...

But such Files with Glyphicons Stuff can be found anywhere, depending
on Extensions installed, even FontAwesome Subs are usually placed in
multiple Sections, for some unknown reason. :laugh:

I have the same Glyphicon-Linking in my Merkent Bootstrap Theme

Code: Select all

shop/catalog/view/theme/default/stylesheet/stylesheet.css
like:

Code: Select all

@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot)
and it links exactly the same way:

Code: Select all

shop/catalog/view/theme/default/fonts/glyphicons-halflings-regular.eot
So, if it works, let it do the Job, because, as I found out, not all files, named
equal, contain equal content, Dev's sometimes do strange things ...
Good Luck! ;)
Ernie
This is on the admin side, not a custom catalog theme. This is the bootstrap file that is used for the admin interface. So I think it is a problem as nothing exists at the directories it is pointing to. I see this on version 2.3.0.2 and 3.0.2.0. Seems like a bug.

Re: Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 6:33 am
by IP_CAM
Well, admin or not, it's still the same setup.
But if you have no such Directory, just download the ZIP enclosed,
and uploaded it, then, you'll have one to test! :D
Ernie

Re: Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 6:40 am
by bzark
IP_CAM wrote:
Wed Oct 11, 2017 6:33 am
Well, admin or not, it's still the same setup.
But if you have no such Directory, just download the ZIP enclosed,
and uploaded it, then, you'll have one to test! :D
Ernie
Thanks, I know how to fix it, really all I am asking if this is a bug. I looked at a bunch of OC versions and they are all the same. In its current state I don't see how those fonts could ever be downloaded given they point to a location that doesn't exist.

Re: Bootstrap Glyphicons font

Posted: Wed Oct 11, 2017 9:59 am
by IP_CAM
Well, I played around with OC 2's for a while, and I was not even aware of the
Fact, that Glyphicons where Part of those Versions too, since FontAwesome
Pic's are used by OC Default. So, Most users would not even know, if it works or
not, I assume, if such an error-link like this really exists.
Good Luck anyway! ;)
Ernie