Coder Social home page Coder Social logo

Comments (6)

tfarina avatar tfarina commented on August 14, 2024

Since this was merged, can we close this?

from ios-search-and-stories.

AngeloStavrow avatar AngeloStavrow commented on August 14, 2024

While the PR addresses some missing setup steps in the contribution guidelines, I think a second item that the community may want to address is whether or not it makes sense to drop the use of a licensed font in the project.

It don't know if there are practical considerations for using ProximaNova, including support for non-Latin characters. It would, however, make it easier a little to merge back PRs that aren't using a bunch of different fonts, as I mentioned above.

If so, I'm happy to submit a second PR to move the project over to either a system or open-source font.

from ios-search-and-stories.

nilnilnil avatar nilnilnil commented on August 14, 2024

From my cursory understanding, we aren't wed to using custom fonts. @thm could speak more on this. It should be very easy to drop them if we don't think they'd add much to the application. As an aside, they're not a huge impedance either for people that want to make contributions.

from ios-search-and-stories.

thm avatar thm commented on August 14, 2024

We're using Proxima Nova here since that is the primary typeface we use at DuckDuckGo. As a designer I would always prefer to enforce a consistent design-language throughout a product. In that sense I think it adds a lot to the application, because it makes it ours.

I see that removing the typeface in favor of a default font would make things easier for engineers, but deviating from our design-language would negatively impact our branding, and with that, the people who use the app. I don't necessarily believe that a smoother contribution-process warrants this regression unless the contribution in question adds significant value to the app.

Aren't there alternatives to smoothen the process? can't we somehow fall back to a system typeface when Proxima Nova is not detected?

from ios-search-and-stories.

AngeloStavrow avatar AngeloStavrow commented on August 14, 2024

That makes a lot of sense to meβ€”I agree that visual consistency across all platforms is really important. I'll look into the system-font-as-fallback option this weekend and send a PR with a better fix. πŸ‘

from ios-search-and-stories.

AngeloStavrow avatar AngeloStavrow commented on August 14, 2024

Progress:

I have a custom run script phase that will check the $CONFIGURATION and if it's Debug, it basically does nothing. Otherwise, for Release-* configurations, it should copy the Proxima Nova font files over.

We can then remove the font files from the Copy Bundle Resources phase, and everything ends up rendered in the system font for Debug builds.

However, I'm not entirely sure about the source and destination folders and my script-fu is not strong. πŸ˜’

Can someone confirm that the files exist in $(SCROOT)/Resources/proximanova-*.otf?

The build script is as follows:

if [ "${CONFIGURATION}" == Debug ] ; then
    echo "Debug configuration."
    # Basically do nothing here and it'll fall back to the system font.
else
    echo "Release configuration."
    cp -r "${SCRIPT_INPUT_FILE_0}" ${BUILD_PRODUCTS_DIR}/${PRODUCT_NAME}.app
    cp -r "${SCRIPT_INPUT_FILE_1}" ${BUILD_PRODUCTS_DIR}/${PRODUCT_NAME}.app
    cp -r "${SCRIPT_INPUT_FILE_2}" ${BUILD_PRODUCTS_DIR}/${PRODUCT_NAME}.app
    cp -r "${SCRIPT_INPUT_FILE_3}" ${BUILD_PRODUCTS_DIR}/${PRODUCT_NAME}.app
fi

from ios-search-and-stories.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.