fez (Swedish) comes from Ottoman Turkish فس, from Ottoman Turkish فاس, from Arabic فَاس — Fez, Morocco; fez.