volcan

About

Username
volcan
Joined
Visits
99
Last Active
Roles
member
Points
1,747
Badges
1
Posts
1,799
  • Apple.com switches web font from Myriad to San Francisco

    thewb said:
    Are you sure the font you see is San Francisco? Looks no different on my Mac and iPhone than on my PC. No version of San Francisco appears in Font Book and it is not available for general use in any app, it is only available as the system font for UI elements. The CSS at apple.com has font-family: "SF Pro Display" with fallbacks to SF Pro Icons, Helvetica Neue, Helvetica, Arial, and the browser's default sans-serif. My PC obviously doesn't have San Francisco installed, but it does have Helvetica Neue, and I suspected that's what I was seeing on both PC and Mac. So I tested it with some simple hand-written HTML that uses SF Pro Display with no fallback. As I expected, no dice.
    I didn't check their CSS3 code but I'm pretty sure they are using the tag @font-face. You upload the non web-safe font to your web server and specify the url in the CSS. Then a compatible browser will download the font along with the HTML/CSS/JS etc. You don't have to have it installed on your own machine. This is the new CSS3 way to do it. Most people don't have Myriad typeface installed either but had no problem reading the previous Apple web pages. As you discovered, the old style tag format won't work for fonts not installed on the client's machine, which is why traditionally they had fallback and default fonts. The tag @font-face is not compatible with IE <8 which is why people use redundant methods of specifying the font family. Also the url of the font should be specified in lowercase or it will cause issues even in newer versions of IE. One other thing about IE: you have to specify the font as 'installable' within your CSS code.

    BTW the font you want to use just has to have a url somewhere on the web. It doesn't have to be on your own server. Google has hundreds of fonts that you can specify in your CSS and they get served from Google's servers. 
    retrogustorandominternetpersonmatt2
  • Class-action suit demands Apple add lock-out system to iPhone to prevent texting while dri...

    sog35 said:
    how the fuck is the iphone suppose to know if you are driving or not?
    There is really only one way that I know of. You would need a connected accessory device mounted in the car such as a BT camera or other BT device which would use a visual image or accurate wireless proximity to determine if the phone was being operated from the driver's seat. The system would obviously be voluntary for adults or could be set in parental controls. That said, I can't see how Apple could be forced to provide that sort of solution. It seems like something a third party should be developing because Apple is not the only cell phone manufacturer. 
    randominternetpersonnoahbdavid
  • BACtrack unveils Apple Watch band with built-in blood alcohol monitor

    BACtrack Skyn can help users not only track their blood alcohol content "passively, accurately and near real-time," 
    It is measuring ethanol molecules secreted through the skin. Can that really be accurate or real-time?
    albegarc
  • Swift 3.1 coming in spring 2017, focus quickly switching to Swift 4


    It should be noted that you can execute JavaScript code directly within a Swift program.

    No surprise here because if you couldn't execute JavaScript inside of Swift, it wouldn't be a very suitable replacement for Obj-C would it? That functionality has been available for quite awhile in Obj-C through the JavaScriptCore framework.
    asdasd