Comments (6)
Since this was merged, can we close this?
from ios-search-and-stories.
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.
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.
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.
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.
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)
- When refreshing a readability story the page turns red HOT 2
- Address link does not open native maps app HOT 9
- Search-field issue HOT 2
- Crashes on older iPhones running older versions of iOS HOT 15
- Mosaic view completely broken in the new build (6.0.1) HOT 4
- Viewport height issue HOT 7
- Grey border on app icon HOT 6
- Feature request: Add support for multiple tabs HOT 1
- Feature request: Option to switch to dark mode in low light HOT 1
- 'Added' and 'Removed' pop up missing when favoriting a story from the main story feed HOT 1
- Navigation buttons disappear after view video HOT 1
- DuckDuckGo jumps to far back after swiping backwards HOT 1
- Support Universal Links HOT 8
- App crashes when the send feedback button inside the settings view is clicked HOT 7
- Clearing cookies/cache doesn't clear local storage - privacy risk HOT 5
- Feature Request: Support URL Schemes HOT 3
- App crashes on startup (iOS 7.1.2) HOT 4
- Red screen after searching or tapping a story HOT 2
- Add voice search to app
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-search-and-stories.