Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Font character sets

Open pear1 opened this issue 11 years ago • 10 comments

Hello,

I'm using your framework and I'm pretty happy with it.

As I'm migrating from Redux Framework I have few issues which I've found with Google fonts in typography option:

  • Where does people will be able to set character to something like Greek Extended or Latin Extended for other languages than English? (maybe I just can't find them)
  • How does those fonts get include in HTML front-end to load from Google servers (and how to load those specific characters)?

pear1 avatar Jun 09 '15 08:06 pear1

Hello, in next version,we will add a new option-type typography-v2 that will be able to set character set(http://prntscr.com/7ey9rh). In front-end each themes developer will create its function to include them using the rules provided by Google. If it would include Unyson, one problem would be: these fonts usually should not be loaded on all pages, and many other problems. I think that the best solution is to let the developer to include them.

valeriuzdrobau avatar Jun 09 '15 14:06 valeriuzdrobau

I just tested it and it works pretty well. Only I have a problem using latest version from the github. Theme settings hangs on load for few seconds and I can't get typography-v2 value, it returns all theme settings variables.

Approximately when this feature will be ready?

pear1 avatar Jun 09 '15 14:06 pear1

Around two weeks. Do you want to take the value of the font family? If so, when the document is ready, you can take the value with $('.fw-option-typography-v2-option-family select[data-type="family"]').attr('data-value'), also, when selectize is initialized, is triggered 'selectizeLoaded' event.

valeriuzdrobau avatar Jun 09 '15 15:06 valeriuzdrobau

Sorry, second issue was separated in the front-end using fw_get_db_settings_option() function.

pear1 avatar Jun 09 '15 16:06 pear1

Can I close this issue?

valeriuzdrobau avatar Jun 10 '15 08:06 valeriuzdrobau

I am waiting for an answer about this last issue, when fw_get_db_settings_option function isn't working correctly which is very important. Is it clear why that kind of issue could appear or eventually this will be fixed?

My theme at this moment is 70% completed and I would love to continue development process with this typography-v2 option.

pear1 avatar Jun 10 '15 09:06 pear1

I have tested and works fine, you can give me your code where you said option, and where extract value?

valeriuzdrobau avatar Jun 10 '15 10:06 valeriuzdrobau

I'm not sure why, but now it's working (just updated everything). Weird, anyway thank you for your time.

pear1 avatar Jun 10 '15 11:06 pear1

i'm still don't understand

farid-alfernass avatar Oct 02 '15 06:10 farid-alfernass

We have created typography-v2 and don't have any plans related to typography functionality (you can create your own option-type)

ghost avatar Oct 12 '16 16:10 ghost