Text Not Displaying Correctly

PennController for IBEX Forums Support Text Not Displaying Correctly

This topic contains 1 reply, has 2 voices, and was last updated by Jeremy Jeremy 3 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7486
    Avatar
    topasnaa
    Participant

    Hi Jeremy,

    I am helping a group on their project and they seem to be having an issue displaying text correctly. They want the words in their study to display an ambiguous letter between a b and a p. For some reason, the text is delaying random numbers instead. They think this might be an issue with their file type for the front (.oft) but they are not sure.

    Here is the link to the experiment
    https://farm.pcibex.net/r/VuRsKS/

    Thank you,
    Ana

    #7487
    Jeremy
    Jeremy
    Keymaster

    Hi Ana,

    The numbers are not random, they match exactly the text from the table’s token column, eg:

    3eak,beak-peak_1_VOT_1.wav,438
    5eak,beak_peak_2_VOT_2.wav,438

    Using a custom font is more involved than just uploading a font file to a project’s Resources folder. It requires using the @font-face CSS rule to fetch the font file. The PCIbex Farm won’t allow background access to the font file, it will result in a CORS error (you can, however, download it manually by directly entering the URL in the address bar, but that’s of no help here)

    My suggestion is to upload the font file on a domain that won’t throw a CORS error and insert this in the project’s global_main.css file under the Aesthetics folder:

    @font-face {
        font-family: "Arial Modified";
        src: url("https://url.toward.the/font.otf") format("opentype");
    }
    .PennController-wordtoken {
        font-family: "Arial Modified";
    }

    I should note, however, that the Arial font is not under an open license, which means you cannot modify it legally

    Jeremy

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.