Close

Account

Documentation

Forum

Menu

Greek Font Problem

  • aioweb
    January 28, 2015 at 3:30 pm #8690

    First of all hi and thanks in advance for any help.

    As mentioned in other threads i have create a custom font via Punch fonts as following Handle: “tp-ubunel” and Parameter:”Ubuntu:500,400,700,300&subset=greek-ext” and waited to see the change in fonts (menu) but no luck.

    So i believe that is something wrong with the specific option.

    So can i have some help as to how to add functionality with other languages in file scriptstyle.php.

    I need to add the &subset=greek-ext in the above piece of code after the name and the size of the font.

    function jeg_build_font($fontarray) {
    $fonturl = “https://fonts.googleapis.com/css?family=”;

    foreach($fontarray as $idx => $font)
    {
    $fontname = str_replace(‘ ‘, ‘+’, $font[‘fontname’]);
    $farray = array();

    if(!empty($font[‘fontstyle’])) {
    foreach($font[‘fontstyle’] as $fontstyle) {
    // font normal
    if($fontstyle == ‘normal’) $fontstyle = ”;

    if(!empty($font[‘fontweight’])) {
    foreach($font[‘fontweight’] as $fontweight) {
    // font weight
    if($fontweight == ‘normal’) $fontweight = 400;
    $farray[] = $fontweight . $fontstyle;
    }
    }

    }
    }

    Thank you again.

    Post count: 6364
    Adek
    January 30, 2015 at 9:38 am #8729

    Hi aioweb,

    So in this case, you want to use those font on your menu? If so, did you’ve change the font family of your menu?
    Or you can try to upload the font on Additional Font, you can take a look right here http://support.jegtheme.com/documentation/additional-style-javascript-font/

    Thank you

You must be logged in to reply to this topic.