Hey there!
It looks like you're enjoying Console Games but haven't created an account yet. Why not take a minute to
register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more.
Register now!Already a member? Login at the top of this page to stop seeing this message.
---
Hello!
Se pare ca iti place Console Games insa nu ti-ai creat inca un cont. Pentru a beneficia de toate avantajele iti ia doar un minut sa te
inregistrezi si este gratuit. In plus ca membru poti accesa nelimitat toate functiile acestui website, comunica direct cu ceilalti si participa la concursuri, tournaments, arcade, etc. Multumim anticipat pentru intelegere !
Inregistreaza-te acum !Daca esti deja membru ConsoleGames.ro si inca iti apare acest mesaj, te rugam sa te loghezi cu userul si parola pentru a nu mai fi deranjat. O zi buna !
Single post: nVidia elibereaza noul monstru grafic: GeForce GTX TITAN Z
-
Banned
Snake, tu tot nu pricepi ce spun eu. Windows are un mod de randare al fonturilor gandit strict pentru afisarea textului pe Display, pe cand OS X are un mod de randare al fonturilor gandit pentru Print. Implementand aceste concepte practic avem diferite rezultate la afisarea textului pe un monitor, la o anumita rezolutie si un anumit DPI.
Singura librarie de pe Windows care impementeaza relativ aceleasi concepte, si anume DPI and Device-Independent Pixels, este Metro [WinRT API] si WPF. De aici vorbim in aceeasi limba [Windows si OS X].
WINDOWS
To program effectively with Windows graphics, you must understand two related concepts:
Dots per inch (DPI)
Device-independent pixel (DIPs).
Let's start with DPI.
This will require a short detour into typography. In typography, the size of type is measured in units called
points. One point equals 1/72 of an inch.
1 pt = 1/72 inch
Note This is the desktop publishing definition of point. Historically, the exact measure of a point has varied.
OS X / IOS
All coordinate values and distances are specified
using points, which are floating-point values. The measurable size of a point varies from device to device and is largely irrelevant. The main thing to understand about points is that they provide a fixed frame of reference for drawing.
Querying the scale factor is the best way to determine the relationship between pixels and points on the current device. In iOS 4 and later, UIScreen has a property called scale which is a floating point number that defines the pixel/point relationship. In Objective C you can get this number using:
[[UIScreen mainScreen] scale]
On an iPhone 4 and 5 a point is a four pixel square, so if you draw a one-point line, it shows up as two pixels wide. The theory is that you specify your measurements in points for all devices, and iOS automatically draws everything to the right proportion on the screen. The result is that if you draw the same content on two similar devices, with only one of them having a high-resolution screen, the content appears to be about the same size on both devices.
Amu intelegi, cata legatura [vorbim strict de Randarea Fonturilor] au WinRT, OS X & iOS cu TIPOGRAFIA SI PRINTUL? La Windows nu am vazut conceptul asta aplicat decat in cazul WinRT si WPF. OS X il foloseste nativ. Din acest motiv MonkY vorbea despre problema lizibilitatii textului pe un display 4K pe Windows. Daca l-ai incerca [acelasi display] pe un MAC, cred ca experienta ar fii diferita.